This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14697] libstdc++ couldn't find 32bit libgcc_s
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2004 18:49:27 -0000
- Subject: [Bug libstdc++/14697] libstdc++ couldn't find 32bit libgcc_s
- References: <20040323175052.14697.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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