# DP: Undefine LINK_EH_SPEC before redefining it
# DP: http://gcc.gnu.org/ml/gcc-patches/2011-02/msg01082.html

--- a/src/gcc/config/rs6000/sysv4.h
+++ b/src/gcc/config/rs6000/sysv4.h
@@ -835,6 +835,7 @@
   -dynamic-linker " LINUX_DYNAMIC_LINKER "}}"
 
 #if defined(HAVE_LD_EH_FRAME_HDR)
+# undef  LINK_EH_SPEC
 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 #endif
 
