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 fundawang
Recipients amaury.forgeotdarc, fundawang
Date 2009-06-12.15:40:36
SpamBayes Score 0.00135238
Marked as misclassified No
Message-id <>
Regarding python binary target, the actual command when linking is:
gcc -pthread -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -lstdc++ -
Xlinker -export-dynamic -o python \
Modules/python.o \
-LL. -lpython2.6 -lpthread -ldl  -lutil   -lm

The linking order is wrong. "-lstdc++" is LIBADD, it should appear 
after OBJECTS such as Modules/python.o. The same applies to -pthread.

The command should looks like:
gcc -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Xlinker -export-
dynamic -o python \
Modules/python.o \
-LL. -lpython2.6 -lpthread -ldl  -lutil   -lm  -lstdc++
Date User Action Args
2009-06-12 15:40:38fundawangsetrecipients: + fundawang, amaury.forgeotdarc
2009-06-12 15:40:38fundawangsetmessageid: <>
2009-06-12 15:40:37fundawanglinkissue6237 messages
2009-06-12 15:40:36fundawangcreate