Skip to content

Commit

Permalink
more strict nopie check
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Mar 31, 2019
1 parent addf482 commit 3c52555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand All @@ -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])]
Expand Down

0 comments on commit 3c52555

Please sign in to comment.