Code

* configure.ac: Have the "linker tolerates -z relro" configure test do
authormjwybrow <mjwybrow@users.sourceforge.net>
Sun, 4 May 2008 15:26:51 +0000 (15:26 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Sun, 4 May 2008 15:26:51 +0000 (15:26 +0000)
    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

index 6c55b89e7d08a47ce783072f6b7482bb966c34ab..eaa420af72a0e8f897f572cd80153f2ca7a63480 100644 (file)
@@ -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"