* config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
authorKrister Walfridsson <cato@df.lth.se>
Mon, 3 Sep 2007 16:14:04 +0000 (18:14 +0200)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Mon, 3 Sep 2007 16:14:04 +0000 (16:14 +0000)
From-SVN: r128049

gcc/ChangeLog
gcc/config/netbsd-elf.h

index 3526e61feae74ee0861e32dd4cf93be6a19419d6..d80882a5099563ea01e50800e82b65f6ae4a29b8 100644 (file)
@@ -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
index aae9e2521921b62cf49e5eb265553ea95508d383..37f504b8435643273f10cf621344f9be84ce63b4 100644 (file)
@@ -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