This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/14697] libstdc++ couldn't find 32bit libgcc_s


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]