]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
elf.h (LIB_SPEC): New.
authorH.J. Lu <hjl@gnu.org>
Sun, 15 Feb 1998 19:43:58 +0000 (19:43 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 15 Feb 1998 19:43:58 +0000 (12:43 -0700)
        * config/alpha/elf.h (LIB_SPEC): New. Defined if
        USE_GNULIBC_1 is not defined.
        * 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/sparc/linux64.h (LIBGCC_SPEC): Removed.
        (CPP_SUBTARGET_SPEC): Add %{pthread:-D_REENTRANT}.
        (LIB_SPEC): Updated for glibc 2.

From-SVN: r18014

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

index e8351167792783da7f6a0f165adad08271c615b7..a50371c9e7951dceeaee97685a0d7883d35b584f 100644 (file)
@@ -1,3 +1,18 @@
+Sat Feb 14 15:54:28 1998  H.J. Lu  (hjl@gnu.org)
+
+       * config/alpha/elf.h (LIB_SPEC): New. Defined if
+       USE_GNULIBC_1 is not defined.
+
+       * 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/sparc/linux64.h (LIBGCC_SPEC): Removed.
+       (CPP_SUBTARGET_SPEC): Add %{pthread:-D_REENTRANT}.
+       (LIB_SPEC): Updated for glibc 2.
+
 Sat Nov 29 12:45:51 1997  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * config/i386/cygwin32.h (DWARF2_UNWIND): Exception handling 
index 2279fb1de929be6ba72f856e80dc1145cbc59cb1..07599b82667f3c265eaf3f59205ef50b8e32ba0a 100644 (file)
@@ -62,6 +62,14 @@ Currently only Linux uses this. */
 #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
+
 /* Output at beginning of assembler file.  */
 
 #undef ASM_FILE_START
index ba81586ae94c5e52835b3441c5b1f365b2f75ab3..530a22940787f2d02db9854b882d2e2fddcb54dd 100644 (file)
@@ -104,7 +104,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 6f7a6ca9469e92208b7ac4128c25d1e2a6be8500..da283161dd8ddf9fbc686a79ffd5639a844927e5 100644 (file)
@@ -126,7 +126,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 56c2183013df03de523292acefc674e8fd2ff423..5e69f515d33af4ef7f6cb46ff353fab3867bbf0d 100644 (file)
@@ -48,10 +48,6 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_CPU_DEFAULT_SPEC
 #define ASM_CPU_DEFAULT_SPEC "-Av9a"
 
-#undef  LIBGCC_SPEC
-#define LIBGCC_SPEC \
-  "%{!shared:-lgcc}"
-
 /* Provide a STARTFILE_SPEC appropriate for Linux.  Here we add
    the Linux magical crtbegin.o file (see crtstuff.c) which
    provides part of the support for getting C++ file-scope static
@@ -111,15 +107,14 @@ Boston, MA 02111-1307, USA.  */
 %{fPIC:-D__PIC__ -D__pic__} \
 %{fpic:-D__PIC__ -D__pic__} \
 %{posix:-D_POSIX_SOURCE} \
+%{pthread:-D_REENTRANT} \
 "
-/* We no longer link with libc_p.a or libg.a by default. If you
- * want to profile or debug the Linux C library, please add
- * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
- */
+
 #undef LIB_SPEC
 #define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
-     %{!ggdb:-lc} %{ggdb:-lg}}"
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+     %{profile:-lc_p} %{!profile: -lc}}"
 
 /* Provide a LINK_SPEC appropriate for Linux.  Here we provide support
    for the special GCC options -static and -shared, which allow us to