From 4392a547f5434b483090f592c6a723a4377b8535 Mon Sep 17 00:00:00 2001 From: Krister Walfridsson Date: Mon, 3 Sep 2007 18:14:04 +0200 Subject: [PATCH] * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define. From-SVN: r128049 --- 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 -- 2.30.2