summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-13 00:33:05 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-13 00:33:05 +0000
commitfc9a992227cfe4ec446864b101e967dbbbe0fa5a (patch)
treea1818ca7ff89b68893cc695f79ab9bbc98462f88 /gcc/config/linux.h
parent0a5c97106fcb0bb83270dbfce34257457069f7c0 (diff)
downloadgcc-fc9a992227cfe4ec446864b101e967dbbbe0fa5a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 870bbd277fe..64dc91a67de 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