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