This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>

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

gcc -Xlinker -export-dynamic -lpthread -ldl -lutil -lm -lz -shared
-Wl,-soname, -o  mylib.o 

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:37yonassetrecipients: + yonas, doko, movement, schmir, rb
2009-05-21 13:01:37yonassetmessageid: <>
2009-05-21 13:01:35yonaslinkissue4434 messages
2009-05-21 13:01:33yonascreate