Message89281
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:38 | fundawang | set | recipients:
+ fundawang, amaury.forgeotdarc |
2009-06-12 15:40:38 | fundawang | set | messageid: <1244821238.35.0.0186955773043.issue6237@psf.upfronthosting.co.za> |
2009-06-12 15:40:37 | fundawang | link | issue6237 messages |
2009-06-12 15:40:36 | fundawang | create | |
|