diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-05-09 17:30:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-05-09 17:30:53 +0000 |
commit | cdbf48bed66758a785695faef64d44ef96ffa372 (patch) | |
tree | 3067d81caedde742315ae3d0d206269799371788 /configure.in | |
parent | f32d2b81c2fe62c7a4e2fab3290c79cdedfae5d0 (diff) | |
download | glibc-cdbf48bed66758a785695faef64d44ef96ffa372.tar.gz glibc-cdbf48bed66758a785695faef64d44ef96ffa372.tar.xz glibc-cdbf48bed66758a785695faef64d44ef96ffa372.zip |
Update.
2004-05-08 Jakub Jelinek <jakub@redhat.com> * configure.in (libc_cv_libgcc_s_suffix): New check. (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix. * config.make.in (libgcc_s_suffix): Set. * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 082aa1ac42..bf60a50028 100644 --- a/configure.in +++ b/configure.in @@ -1315,14 +1315,29 @@ EOF rm -f conftest*]) AC_SUBST(libc_cv_Bgroup) + AC_CACHE_CHECK(for libgcc_s suffix, + libc_cv_libgcc_s_suffix, [dnl + cat > conftest.c <<EOF +int main (void) { return 0; } +EOF +changequote(,)dnl + libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ + -shared -shared-libgcc -o conftest.so \ + conftest.c -v 2>&1 >/dev/null \ + | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` +changequote([,])dnl + rm -f conftest*]) + AC_SUBST(libc_cv_libgcc_s_suffix) + AC_CACHE_CHECK(for --as-needed option, libc_cv_as_needed, [dnl cat > conftest.c <<EOF int main (void) { return 0; } EOF if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS - -shared -o conftest.so conftest.c -lgcc_s - -Wl,--as-needed -nostdlib 1>&AS_MESSAGE_LOG_FD]) + -shared -o conftest.so conftest.c + -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed + -nostdlib 1>&AS_MESSAGE_LOG_FD]) then libc_cv_as_needed=yes else |