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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc8ac2e97d16c01a6e4c10914d848d228f7494b5;p=pdns 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 3493d72a1..4f93629a8 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