08e9ee2
2010-02-08  Roland McGrath  <roland@redhat.com>
08e9ee2
08e9ee2
	* config/rs6000/sysv4.h (LINK_EH_SPEC): Pass --no-add-needed to the
08e9ee2
	linker.
08e9ee2
	* config/linux.h (LINK_EH_SPEC): Likewise.
08e9ee2
	* config/alpha/elf.h (LINK_EH_SPEC): Likewise.
08e9ee2
	* config/ia64/linux.h (LINK_EH_SPEC): Likewise.
08e9ee2
08e9ee2
--- gcc/config/alpha/elf.h.~1~
08e9ee2
+++ gcc/config/alpha/elf.h
08e9ee2
@@ -421,7 +421,7 @@ extern int alpha_this_gpdisp_sequence_nu
08e9ee2
    I imagine that other systems will catch up.  In the meantime, it
08e9ee2
    doesn't harm to make sure that the data exists to be used later.  */
08e9ee2
 #if defined(HAVE_LD_EH_FRAME_HDR)
08e9ee2
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
 #endif
08e9ee2
 
08e9ee2
 /* A C statement (sans semicolon) to output to the stdio stream STREAM
08e9ee2
--- gcc/config/ia64/linux.h.~1~
08e9ee2
+++ gcc/config/ia64/linux.h
08e9ee2
@@ -58,7 +58,7 @@ do {						\
08e9ee2
    Signalize that because we have fde-glibc, we don't need all C shared libs
08e9ee2
    linked against -lgcc_s.  */
08e9ee2
 #undef LINK_EH_SPEC
08e9ee2
-#define LINK_EH_SPEC "%{!r:--build-id} "
08e9ee2
+#define LINK_EH_SPEC "--no-add-needed %{!r:--build-id} "
08e9ee2
 
08e9ee2
 #define MD_UNWIND_SUPPORT "config/ia64/linux-unwind.h"
08e9ee2
 
08e9ee2
--- gcc/config/linux.h.~1~
08e9ee2
+++ gcc/config/linux.h
08e9ee2
@@ -89,7 +89,7 @@ see the files COPYING3 and COPYING.RUNTI
08e9ee2
     } while (0)
08e9ee2
 
08e9ee2
 #if defined(HAVE_LD_EH_FRAME_HDR)
08e9ee2
-#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
+#define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
 #endif
08e9ee2
 
08e9ee2
 /* Define this so we can compile MS code for use with WINE.  */
08e9ee2
--- gcc/config/rs6000/sysv4.h.~1~
08e9ee2
+++ gcc/config/rs6000/sysv4.h
08e9ee2
@@ -917,7 +917,7 @@ SVR4_ASM_SPEC \
08e9ee2
   %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}"
08e9ee2
 
08e9ee2
 #if defined(HAVE_LD_EH_FRAME_HDR)
08e9ee2
-# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
+# define LINK_EH_SPEC "--no-add-needed %{!static:--eh-frame-hdr} %{!r:--build-id} "
08e9ee2
 #endif
08e9ee2
 
08e9ee2
 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \