From: Aki Tuomi Date: Fri, 24 Nov 2017 07:00:24 +0000 (+0200) Subject: m4: Use CC, not CXX in ld_relro X-Git-Tag: 2.3.0.rc1~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbb1816a7ab99e5da97497b22eef87fd062194d8;p=thirdparty%2Fdovecot%2Fcore.git m4: Use CC, not CXX in ld_relro --- diff --git a/m4/ld_relro.m4 b/m4/ld_relro.m4 index e3b5287df2..a2800510ec 100644 --- a/m4/ld_relro.m4 +++ b/m4/ld_relro.m4 @@ -22,7 +22,7 @@ AC_DEFUN([AC_LD_RELRO],[ RELRO_LDFLAGS= if test $enable_hardening = yes; then AC_MSG_CHECKING([for how to force completely read-only GOT table]) - ld_help=`$CXX -Wl,-help 2>&1` + ld_help=`$CC -Wl,-help 2>&1` case $ld_help in *"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;; esac