------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-04 13:52 ------- It works with your script too: sh -x x.sh + CXX=/home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ + /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -pthread -fexceptions -fident -g -fuse-cxa-atexit -c -o test.o test.cc ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crt1.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crti.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtbegin.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtend.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtn.o + /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -pthread -fexceptions -fident -g -fuse-cxa-atexit -nostdlib -o test /usr/lib/crt1.o /usr/lib/crti.o /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/crtbegin.o test.o -lsupc++ -ldl -lgcc_s -lpthread -lc -lm /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/crtend.o /usr/lib/crtn.o + /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -pthread -fexceptions -fident -fPIC -g -fuse-cxa-atexit -c -o testlib.o testlib.cc ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crti.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtbeginS.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtendS.o ++ /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -print-file-name=crtn.o + /home/peshtigo/pinskia/ia32_linux_gcc3_4/bin/c++ -pthread -fexceptions -fident -fPIC -g -fuse-cxa-atexit -shared -Wl,-hlibtestg.so.0.0 -nostdlib -o libtestg.so.0.0.0 /usr/lib/crti.o /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/crtbeginS.o testlib.o -lgcc_s -lsupc++ -lpthread -lc -lm /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/crtendS.o /usr/lib/crtn.o + rm -f libtestg.so.0.0 + ln -s libtestg.so.0.0.0 libtestg.so.0.0 + rm -f libtestg.so.0 + ln -s libtestg.so.0.0 libtestg.so.0 + rm -f libtestg.so + ln -s libtestg.so.0 libtestg.so + ./test
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24189