public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Patch for egcs 1.0.2
@ 1998-02-06  9:12 H.J. Lu
  1998-02-08 23:28 ` Jeffrey A Law
  1998-02-13  2:16 ` Jeffrey A Law
  0 siblings, 2 replies; 10+ messages in thread
From: H.J. Lu @ 1998-02-06  9:12 UTC (permalink / raw)
  To: egcs; +Cc: GNU C Library

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-02-15 20:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-06  9:12 Patch for egcs 1.0.2 H.J. Lu
1998-02-08 23:28 ` Jeffrey A Law
1998-02-09 11:31   ` H.J. Lu
1998-02-09  9:04     ` Jeffrey A Law
1998-02-09  9:08       ` H.J. Lu
1998-02-13  2:16 ` Jeffrey A Law
1998-02-14 15:56   ` H.J. Lu
1998-02-15  9:21     ` Jeffrey A Law
1998-02-15 12:08       ` H.J. Lu
1998-02-15 20:00         ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).