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.0013523848
Marked as misclassified No
Message-id <1244821238.35.0.0186955773043.issue6237@psf.upfronthosting.co.za>
In-reply-to
Content
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++
History
Date User Action Args
2009-06-12 15:40:38fundawangsetrecipients: + fundawang, amaury.forgeotdarc
2009-06-12 15:40:38fundawangsetmessageid: <1244821238.35.0.0186955773043.issue6237@psf.upfronthosting.co.za>
2009-06-12 15:40:37fundawanglinkissue6237 messages
2009-06-12 15:40:36fundawangcreate