From 3c52555f99254cac4f7c34ecc10e0a13a284b47f Mon Sep 17 00:00:00 2001 From: cathugger Date: Sun, 31 Mar 2019 23:39:11 +0300 Subject: [PATCH] more strict nopie check --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e47e938..9893bd4 100644 --- a/configure.ac +++ b/configure.ac @@ -30,7 +30,7 @@ fi nopie="" oldcflags="$CFLAGS" -CFLAGS="-nopie" +CFLAGS="-nopie -Werror" AC_MSG_CHECKING([whether CC supports -nopie]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_RESULT([yes])] @@ -42,7 +42,7 @@ 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_MSG_RESULT([yes])]