From: Ruben Kerkhof Date: Fri, 20 Feb 2015 16:51:38 +0000 (+0000) Subject: Check compiler for relro support instead of linker X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~117^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2263%2Fhead;p=thirdparty%2Fpdns.git Check compiler for relro support instead of linker We use the compiler for linking in most cases instead of calling ld directly. Do this the same way as we do for the recursor. Fixes #2172 --- diff --git a/m4/pdns_relro.m4 b/m4/pdns_relro.m4 index 3493d72a12..4f93629a8e 100644 --- a/m4/pdns_relro.m4 +++ b/m4/pdns_relro.m4 @@ -22,7 +22,7 @@ AC_DEFUN([AC_LD_RELRO],[ AC_MSG_CHECKING([for how to force completely read-only GOT table]) RELRO_LDFLAGS= - ld_help=`$LD --help 2>&1` + ld_help=`$CXX -Wl,-help 2>&1` case $ld_help in *"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;; esac