1 Dec 2009 09:39
Re: Using Python/Tools/freeze to generate a compiled version of the harness
Marian Csontos <mcsontos <at> redhat.com>
2009-12-01 08:39:08 GMT
2009-12-01 08:39:08 GMT
On 11/30/2009 09:42 PM, Bill Peck wrote: > > Hi Marian, > > I thought I'd mention that I stumbled across freeze for python. It > allows you to compile python code into a native binary. > > python26 ../freeze/freeze.py -X PyDOC /usr/bin/beah-beaker-backend -m > encodings -m encodings.hex_codec -m encodings.ascii > > I had to add the encodings since freeze didn't figure it out > automatically. > > I also had to edit the config.c file that it generated. It improperly > puts in a _warnings entry which is incorrect. > > After that I was able to compile the code with a simple make. > > [root <at> dell-pe1850-01 beah-beaker-backend]# eu-readelf -d > beah-beaker-backend |more > > Dynamic segment contains 29 entries: > Addr: 0x08390684 Offset: 0x348684 Link to section: [ 5] '.dynstr' > Type Value > NEEDED Shared library: [libpthread.so.0] > NEEDED Shared library: [libdl.so.2] > NEEDED Shared library: [libutil.so.1] > NEEDED Shared library: [libm.so.6] > NEEDED Shared library: [libc.so.6] > INIT 0x08057f58(Continue reading)

RSS Feed