diff options
Diffstat (limited to 'gcc-4.9/gcc/config/openbsd.h')
-rw-r--r-- | gcc-4.9/gcc/config/openbsd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/openbsd.h b/gcc-4.9/gcc/config/openbsd.h index 7150d49aa..600474834 100644 --- a/gcc-4.9/gcc/config/openbsd.h +++ b/gcc-4.9/gcc/config/openbsd.h @@ -136,8 +136,12 @@ while (0) #define LIB_SPEC OBSD_LIB_SPEC #if defined(HAVE_LD_EH_FRAME_HDR) +#ifdef USE_EH_FRAME_HDR_FOR_STATIC +#define LINK_EH_SPEC "--eh-frame-hdr " +#else #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " #endif +#endif #undef LIB_SPEC #define LIB_SPEC OBSD_LIB_SPEC |