aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>1998-02-13 00:33:05 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-12 17:33:05 -0700
commit1398405bf8931a3216543e09ecf2b08da8b2ca37 (patch)
treea1818ca7ff89b68893cc695f79ab9bbc98462f88 /gcc/config
parentd8b55a76efd8c74a151127bad6dc202e320e2ed4 (diff)
downloadgcc-1398405bf8931a3216543e09ecf2b08da8b2ca37.zip
gcc-1398405bf8931a3216543e09ecf2b08da8b2ca37.tar.gz
gcc-1398405bf8931a3216543e09ecf2b08da8b2ca37.tar.bz2
linux.h (LIB_SPEC): Add -lc for -shared 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/alpha/linux-elf.h (LIB_SPEC): New. Defined if USE_GNULIBC_1 is not defined. From-SVN: r17895
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/alpha/linux-elf.h8
-rw-r--r--gcc/config/linux.h3
-rw-r--r--gcc/config/sparc/linux.h3
-rw-r--r--gcc/config/sparc/linux64.h3
4 files changed, 14 insertions, 3 deletions
diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h
index 0945c68..40aa332 100644
--- a/gcc/config/alpha/linux-elf.h
+++ b/gcc/config/alpha/linux-elf.h
@@ -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
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 870bbd2..64dc91a 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -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
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h
index a312967..f9f8693 100644
--- a/gcc/config/sparc/linux.h
+++ b/gcc/config/sparc/linux.h
@@ -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
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
index c184f31..aba0417 100644
--- a/gcc/config/sparc/linux64.h
+++ b/gcc/config/sparc/linux64.h
@@ -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