Author yonas
Recipients doko, movement, rb, schmir, yonas
Date 2009-05-21.13:01:33
SpamBayes Score 0.000188722
Marked as misclassified No
Message-id <1242910897.34.0.00772018747223.issue4434@psf.upfronthosting.co.za>
In-reply-to
Content
Ralf,

Linking against the static library (with '-Xlinker -export-dynamic') did
_not_ solve the problem for me.

gcc `python2.6-config --cflags` -c -fPIC mylib.c -o mylib.o -Xlinker
-export-dynamic

gcc -Xlinker -export-dynamic -lpthread -ldl -lutil -lm -lz -shared
-Wl,-soname,mylib.so -o mylib.so  mylib.o 
/usr/lib/python2.6/config/libpython2.6.a

gcc `python2.6-config --cflags` -Xlinker -export-dynamic -ldl -lutil -lm
-lz  -o main main.c /usr/lib/python2.6/config/libpython2.6.a
----------------------

`python2.6-config --cflags` returns
-I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing
-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes

--------
Ubuntu Jaunty
Linux yonas-laptop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59
UTC 2009 i686 GNU/Linux
History
Date User Action Args
2009-05-21 13:01:37yonassetrecipients: + yonas, doko, movement, schmir, rb
2009-05-21 13:01:37yonassetmessageid: <1242910897.34.0.00772018747223.issue4434@psf.upfronthosting.co.za>
2009-05-21 13:01:35yonaslinkissue4434 messages
2009-05-21 13:01:33yonascreate