[Bug libstdc++/14697] libstdc++ couldn't find 32bit libgcc_s
hjl at lucon dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 23 18:49:00 GMT 2004
------- Additional Comments From hjl at lucon dot org 2004-03-23 18:49 -------
In libstdc++-v3/acinclude.m4, there are
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
if test $enable_symvers != no; then
AC_MSG_CHECKING([for shared libgcc])
ac_save_CFLAGS="$CFLAGS"
CFLAGS=' -lgcc_s'
AC_TRY_LINK(, [return 0;], glibcxx_shared_libgcc=yes, glibcxx_shared_libgcc=no)
CFLAGS="$ac_save_CFLAGS"
AC_MSG_RESULT($glibcxx_shared_libgcc)
fi
It won't work with multilib when the name of the shared libgcc is not
libgcc_s.so. On x86_64, it is libgcc_s_32.so. It should use -shared-libgcc
instead of -lgcc_s.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14697
More information about the Gcc-bugs
mailing list