summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-03 16:14:04 +0000
committerkristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-03 16:14:04 +0000
commitd7b60d9d8dad006dd5fdcdee0fe049d90da6d8fe (patch)
treec0fb4ed84c4edeec4dee671487a04e10b7380065
parent81747544ba9eeb8143a39537d34fe70fe76f1898 (diff)
downloadgcc-d7b60d9d8dad006dd5fdcdee0fe049d90da6d8fe.tar.gz
* 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
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/netbsd-elf.h5
2 files changed, 9 insertions, 0 deletions
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 <cato@df.lth.se>
+
+ * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
+
2007-09-03 Richard Sandiford <richard@codesourcery.com>
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