about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makeconfig2
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
-rw-r--r--nptl/ChangeLog5
4 files changed, 6 insertions, 5 deletions
diff --git a/Makeconfig b/Makeconfig
index 37bbb1df4c..ce84c75624 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -520,7 +520,7 @@ ifndef gnulib
 ifneq ($(have-as-needed),yes)
  libgcc_eh := -lgcc_eh
 else
- libgcc_eh := --as-needed -lgcc_s --no-as-needed
+ libgcc_eh := -Wl,--as-needed -lgcc_s -Wl,--no-as-needed
 endif
 ifneq ($(have-cc-with-libunwind),yes)
  gnulib := -lgcc $(libgcc_eh)
diff --git a/configure b/configure
index 17268e0d95..01cd516841 100755
--- a/configure
+++ b/configure
@@ -5565,7 +5565,7 @@ else
 int main (void) { return 0; }
 EOF
   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
-			      -shared -o conftest.so conftest.c
+			      -shared -o conftest.so conftest.c -lgcc_s
 			      -Wl,--as-needed -nostdlib 1>&5'
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
diff --git a/configure.in b/configure.in
index 1f03854534..082aa1ac42 100644
--- a/configure.in
+++ b/configure.in
@@ -1321,7 +1321,7 @@ EOF
 int main (void) { return 0; }
 EOF
   if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
-			      -shared -o conftest.so conftest.c
+			      -shared -o conftest.so conftest.c -lgcc_s
 			      -Wl,--as-needed -nostdlib 1>&AS_MESSAGE_LOG_FD])
   then
     libc_cv_as_needed=yes
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 4d07dac5ee..7225ad5057 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,7 +1,8 @@
 2004-04-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
-	* sysv/linux/sh/pthread_cond_wait.S: Remove unneeded frame info.
-	* sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
+	* sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
+	frame info.
+	* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
 
 2004-04-15  Jakub Jelinek  <jakub@redhat.com>