diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-04-23 02:16:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2004-04-23 11:46:26 +0930 |
commit | 8efcd34fa233d0ce3197e042677f1a0fb2801c35 (patch) | |
tree | 19ecdce5770c443ff6c937695a19fb3fac65ea7f /gcc/config/linux.h | |
parent | 3092d0fc1bf706c5038eaddc3510ff84c914b8c7 (diff) | |
download | gcc-8efcd34fa233d0ce3197e042677f1a0fb2801c35.zip gcc-8efcd34fa233d0ce3197e042677f1a0fb2801c35.tar.gz gcc-8efcd34fa233d0ce3197e042677f1a0fb2801c35.tar.bz2 |
gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
* gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
* config/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
* gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
From-SVN: r81072
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r-- | gcc/config/linux.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h index 0f7ba17..af7bf25 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -1,5 +1,5 @@ /* Definitions for Linux-based GNU systems with ELF format - Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2003 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc. Contributed by Eric Youngdale. Modified for stabs-in-ELF by H.J. Lu (hjl@lucon.org). @@ -117,6 +117,11 @@ Boston, MA 02111-1307, USA. */ #define LINK_GCC_C_SEQUENCE_SPEC \ "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" +/* Use --as-needed -lgcc_s for eh support. */ +#ifdef HAVE_LD_AS_NEEDED +#define USE_LD_AS_NEEDED 1 +#endif + /* Determine whether the the entire c99 runtime is present in the runtime library. */ #ifndef USE_GNULIBC_1 |