From d7b60d9d8dad006dd5fdcdee0fe049d90da6d8fe Mon Sep 17 00:00:00 2001 From: kristerw Date: Mon, 3 Sep 2007 16:14:04 +0000 Subject: * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128049 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/netbsd-elf.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3526e61feae..d80882a5099 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-03 Krister Walfridsson + + * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define. + 2007-09-03 Richard Sandiford PR middle-end/33290 diff --git a/gcc/config/netbsd-elf.h b/gcc/config/netbsd-elf.h index aae9e252192..37f504b8435 100644 --- a/gcc/config/netbsd-elf.h +++ b/gcc/config/netbsd-elf.h @@ -91,3 +91,8 @@ along with GCC; see the file COPYING3. If not see %{rdynamic:-export-dynamic} \ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \ %{static:-static}}" + +/* Use --as-needed -lgcc_s for eh support. */ +#ifdef HAVE_LD_AS_NEEDED +#define USE_LD_AS_NEEDED 1 +#endif -- cgit v1.2.1