aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-06-27 19:00:30 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-06-27 19:00:30 -0400
commit020bf2e7270f74f62520caa0dce7c3280e7c996a (patch)
tree1e50effd31b3aca478ac2cfff8819b1f6a4fae0a /gcc/config/linux.h
parent78b9f8df80a3c474f0115f929842d66937b90f20 (diff)
downloadgcc-020bf2e7270f74f62520caa0dce7c3280e7c996a.zip
gcc-020bf2e7270f74f62520caa0dce7c3280e7c996a.tar.gz
gcc-020bf2e7270f74f62520caa0dce7c3280e7c996a.tar.bz2
(LIB_SPEC): Choose for glibc 1 or 2 depending on USE_GNULIBC_1.
(PREFERRED_DEBUGGING_TYPE): Undefine before define. From-SVN: r14354
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 76100bf..4394526 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -1,5 +1,5 @@
/* Definitions for Linux with ELF format
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Contributed by Eric Youngdale.
Modified for stabs-in-ELF by H.J. Lu.
@@ -43,6 +43,7 @@ Boston, MA 02111-1307, USA. */
#define SET_ASM_OP ".set"
/* Use stabs instead of DWARF debug format. */
+#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#include "svr4.h"
@@ -86,16 +87,22 @@ Boston, MA 02111-1307, USA. */
#define CC1_SPEC "%{profile:-p}"
#undef LIB_SPEC
-#if 1
/* We no longer link with libc_p.a or libg.a by default. If you
* want to profile or debug the Linux C library, please add
* -profile or -ggdb to LDFLAGS at the link time, respectively.
*/
+#if 1
+#ifdef USE_GNULIBC_1
#define LIB_SPEC \
"%{!shared: %{p:-lgmon} %{pg:-lgmon} %{profile:-lgmon -lc_p} \
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
#else
#define LIB_SPEC \
+ "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+ %{profile:-lc_p} %{!profile: -lc}}"
+#endif
+#else
+#define LIB_SPEC \
"%{!shared: \
%{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
%{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}"