From 565c2a968f85f0d5a231046d2ec1b0c5a7f3cb89 Mon Sep 17 00:00:00 2001 From: cathugger Date: Sun, 5 May 2019 22:50:10 +0000 Subject: [PATCH] more strict and this time correct nopie check --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 62aeeca..f2ecb22 100644 --- a/configure.ac +++ b/configure.ac @@ -30,9 +30,9 @@ fi nopie="" oldcflags="$CFLAGS" -CFLAGS="-nopie" +CFLAGS="-nopie -Werror" AC_MSG_CHECKING([whether CC supports -nopie]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], +AC_LINK_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_RESULT([yes])] [nopie="-nopie"], [AC_MSG_RESULT([no])] @@ -42,9 +42,9 @@ CFLAGS="$oldcflags" if test "x$nopie" = "x" then oldcflags="$CFLAGS" - CFLAGS="-no-pie" + CFLAGS="-no-pie -Werror" AC_MSG_CHECKING([whether CC supports -no-pie]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + AC_LINK_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_RESULT([yes])] [nopie="-no-pie"], [AC_MSG_RESULT([no])]