From 252718e90e039822c5883e0271f9fcfb5f7c8c80 Mon Sep 17 00:00:00 2001 From: mjwybrow Date: Sun, 4 May 2008 15:26:51 +0000 Subject: [PATCH] * configure.ac: Have the "linker tolerates -z relro" configure test do a AC_LINK_IFELSE since the existing AC_COMPILE_IFELSE didn't use the LDFLAGS and therefore wasn't actually performing the test. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6c55b89e7..eaa420af7 100644 --- a/configure.ac +++ b/configure.ac @@ -80,7 +80,7 @@ if test "$GCC" = "yes"; then AC_MSG_CHECKING([linker tolerates -z relro]) ink_svd_LDFLAGS="$LDFLAGS" LDFLAGS="-Wl,-z,relro $LDFLAGS" - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), [ink_opt_ok=yes], [ink_opt_ok=no]) + AC_LINK_IFELSE(AC_LANG_PROGRAM([]), [ink_opt_ok=yes], [ink_opt_ok=no]) AC_MSG_RESULT([$ink_opt_ok]) if test "x$ink_opt_ok" != "xyes"; then LDFLAGS="$ink_svd_LDFLAGS" -- 2.30.2