diff options
Diffstat (limited to 'gcc/config/netbsd-elf.h')
-rw-r--r-- | gcc/config/netbsd-elf.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |