OSDN Git Service

(CPP_SPEC, LINK_SPEC): Choose for glibc 1 or 2 depending on
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 1997 23:00:48 +0000 (23:00 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 1997 23:00:48 +0000 (23:00 +0000)
USE_GNULIBC_1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14355 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/linux.h

index f2b3dd2..8f0671d 100644 (file)
@@ -151,7 +151,11 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_PREDEFINES "-D__ELF__ -Dunix -Dlinux -Asystem(posix)"
 
 #undef CPP_SPEC
+#ifdef USE_GNULIBC_1
 #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
+#else
+#define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+#endif
 
 #undef CC1_SPEC
 #define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
@@ -173,6 +177,7 @@ Boston, MA 02111-1307, USA.  */
 /* If ELF is the default format, we should not use /lib/elf. */
 
 #undef LINK_SPEC
+#ifdef USE_GNULIBC_1
 #ifndef LINUX_DEFAULT_ELF
 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
   %{!shared: \
@@ -190,6 +195,15 @@ Boston, MA 02111-1307, USA.  */
        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
        %{static:-static}}}"
 #endif
+#else
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
+  %{!shared: \
+    %{!ibcs: \
+      %{!static: \
+       %{rdynamic:-export-dynamic} \
+       %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
+       %{static:-static}}}"
+#endif
 
 /* Get perform_* macros to build libgcc.a.  */
 #include "i386/perform.h"