Message88152
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 |
|
Date |
User |
Action |
Args |
2009-05-21 13:01:37 | yonas | set | recipients:
+ yonas, doko, movement, schmir, rb |
2009-05-21 13:01:37 | yonas | set | messageid: <1242910897.34.0.00772018747223.issue4434@psf.upfronthosting.co.za> |
2009-05-21 13:01:35 | yonas | link | issue4434 messages |
2009-05-21 13:01:33 | yonas | create | |
|