Patch for egcs 1.0.2
H.J. Lu
hjl@lucon.org
Fri Feb 6 09:12:00 GMT 1998
Hi,
I'd like to see this in egcs 1.0.2. The reason for this is
glibc 2.1 is versioned and the dynamic linker needs to know
which version of libc the shared library is compiled against.
Thanks.
--
H.J. Lu (hjl@gnu.org)
-
Sat Jan 10 14:03:43 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.
Index: config/linux.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/linux.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 linux.h
--- config/linux.h 1997/12/08 17:04:34 1.1.1.3
+++ config/linux.h 1998/01/10 22:03:05
@@ -103,7 +103,8 @@
%{!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: config/sparc/linux.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/sparc/linux.h,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 linux.h
--- config/sparc/linux.h 1997/12/08 17:05:29 1.1.1.5
+++ config/sparc/linux.h 1998/01/30 22:30:58
@@ -125,7 +125,8 @@
%{!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: config/sparc/linux64.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/sparc/linux64.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 linux64.h
--- config/sparc/linux64.h 1998/01/09 17:38:17 1.1.1.4
+++ config/sparc/linux64.h 1998/01/30 22:31:42
@@ -112,7 +112,8 @@
#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
Index: config/alpha/linux-elf.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/linux-elf.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 linux-elf.h
--- config/alpha/linux-elf.h 1998/01/09 17:37:24 1.1.1.1
+++ config/alpha/linux-elf.h 1998/02/06 17:10:12
@@ -35,3 +35,11 @@
#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
More information about the Gcc
mailing list