linux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined.
authorH.J. Lu <hjl@gnu.org>
Fri, 13 Feb 1998 00:33:05 +0000 (00:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Feb 1998 00:33:05 +0000 (17:33 -0700)
        * config/linux.h (LIB_SPEC): Add -lc for -shared if
        USE_GNULIBC_1 is not defined.
        * config/sparc/linux.h; Ditto.
        * config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared.
        * config/alpha/linux-elf.h (LIB_SPEC): New. Defined if
        USE_GNULIBC_1 is not defined.

From-SVN: r17895

gcc/ChangeLog
gcc/config/alpha/linux-elf.h
gcc/config/linux.h
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h

index ade0f6fc7cf8f0fdb5acd26456e4a05965db0541..9c2828f8c47dcff4f86156359fdc28aa924cd6cd 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 13 01:34:14 1998  H.J. Lu  (hjl@gnu.org)
+
+       * config/linux.h (LIB_SPEC): Add -lc for -shared if
+       USE_GNULIBC_1 is not defined.
+       * config/sparc/linux.h; Ditto.
+
+       * config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared.
+
+       * config/alpha/linux-elf.h (LIB_SPEC): New. Defined if
+       USE_GNULIBC_1 is not defined.
+
 Fri Feb 13 01:29:29 1998 Franz Sirl <franz.sirl-kernel@lauterbach.com>
 
        * rs6000/sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux)
index 0945c68eedb40faf9d9f2900070fd345b2d61947..40aa332d189da7727bb380eacb10c39f8ec2db58 100644 (file)
@@ -35,3 +35,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef DEFAULT_VTABLE_THUNKS
 #define DEFAULT_VTABLE_THUNKS 1
 #endif
+
+#ifndef USE_GNULIBC_1
+#undef LIB_SPEC
+#define LIB_SPEC \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+       %{profile:-lc_p} %{!profile: -lc}}"
+#endif
index 870bbd277feedb1f9df435a5508ad821bc632aef..64dc91a67dee01373d244fc6b1526efdaa436ce4 100644 (file)
@@ -103,7 +103,8 @@ Boston, MA 02111-1307, USA.  */
      %{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
 #else
 #define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
        %{profile:-lc_p} %{!profile: -lc}}"
 #endif
 #else
index a312967ac66fcded46b961e184db168ad338135b..f9f869320c0b21c0b86243af9985bf15a523feae 100644 (file)
@@ -125,7 +125,8 @@ Boston, MA 02111-1307, USA.  */
      %{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
 #else
 #define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
      %{profile:-lc_p} %{!profile: -lc}}"
 #endif
 #else
index c184f3134c62121ab9cb915ea9d1cf35cb5d7037..aba0417c8503fefa62bd23a62b6eac51a0d0c63b 100644 (file)
@@ -112,7 +112,8 @@ Boston, MA 02111-1307, USA.  */
 
 #undef LIB_SPEC
 #define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
      %{profile:-lc_p} %{!profile: -lc}}"
 
 /* Provide a LINK_SPEC appropriate for GNU/Linux.  Here we provide support