more strict nopie check

This commit is contained in:
cathugger 2019-03-31 23:39:11 +03:00
parent addf4821d9
commit 3c52555f99
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8

View file

@ -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])]