This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Fix to reduce the additional static testsuite failures with older glibc
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Subject: Fix to reduce the additional static testsuite failures with older glibc
- From: Alfred Minarik <alfred dot minarik at lion dot cc>
- Date: Fri, 26 Jan 2001 14:57:49 +0100
As reported by others there are additional static testcase
failures with older glibc not compiled with current gcc.
And it is quite simple
we only have to use the correct order of libraries.
---Changelog-----
2001-01-26 Alfred Minarik <alfred.minarik@lion.cc>
* tests_flags.in: Fix order of libraries
---diff----------
*** /home/internet/cvs_egcs/egcs/libstdc++-v3/tests_flags.in Thu Jan 25 07:03:14 2001
--- tests_flags.in Fri Jan 26 12:41:01 2001
***************
*** 147,153 ****
case @target_os@ in
*cygwin*) LIBS="${LIBS} -nodefaultlibs -lgcc -lcygwin -luser32
-lkernel32 -ladvapi32 -lshell32" ;;
! *) LIBS="${LIBS} -nodefaultlibs -lc -lgcc -lc" ;;
esac
;;
--installed-library)
--- 147,153 ----
case @target_os@ in
*cygwin*) LIBS="${LIBS} -nodefaultlibs -lgcc -lcygwin -luser32
-lkernel32 -ladvapi32 -lshell32" ;;
! *) LIBS="${LIBS} -nodefaultlibs -lgcc -lc -lgcc" ;;
esac
;;
--installed-library)
-----------------
This only leaves
27_io/ios_base_callbacks.cc
27_io/ios_members.cc
I would like to add the observation, that doing a
make check-install
makes the last additional fails go away.
(This has improved in the last days, before with check-install
I obseved no more fails in 21_string but new ones in 27_io)
But this is erroneous:
After removing the dynamic libraries from the install directory it fails again:
Reason is an additional ld argument of -lstdc++ (probably) generated by g++
as we correctly do not use -nodefaultlibs in the check-install case.
So we seem to get some right bits from libstdc++.so in this case, even
it is searched only after libstdc++.a .
See yourself:
-make check-install:
/usr/local/binutils/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2
-o ./inserters_extractors.st-exe /usr/lib/crt1.o /usr/lib/crti.o
/home/am/gcc/egcs_current/usr/lib/gcc-lib/i686-pc-linux-gnu/2.97/crtbegin.o
-L/home/am/gcc/egcs_current/usr/lib
-L/home/am/gcc/egcs_current/usr/lib/gcc-lib/i686-pc-linux-gnu/2.97
-L/home/am/gcc/egcs_current/usr/lib/gcc-lib/i686-pc-linux-gnu/2.97/../../..
/tmp/ccDJlDsE.o
/home/am/gcc/egcs_current/usr/lib/libstdc++.a
-lm -lm -lm --rpath /home/am/gcc/egcs_current/usr/lib -lstdc++
-lm -lgcc -lc -lgcc
/home/am/gcc/egcs_current/usr/lib/gcc-lib/i686-pc-linux-gnu/2.97/crtend.o /usr/lib/crtn.o
Alfred