Skip to content

Commit 3c52555

Browse files
committed
more strict nopie check
1 parent addf482 commit 3c52555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fi
3030
nopie=""
3131

3232
oldcflags="$CFLAGS"
33-
CFLAGS="-nopie"
33+
CFLAGS="-nopie -Werror"
3434
AC_MSG_CHECKING([whether CC supports -nopie])
3535
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
3636
[AC_MSG_RESULT([yes])]
@@ -42,7 +42,7 @@ CFLAGS="$oldcflags"
4242
if test "x$nopie" = "x"
4343
then
4444
oldcflags="$CFLAGS"
45-
CFLAGS="-no-pie"
45+
CFLAGS="-no-pie -Werror"
4646
AC_MSG_CHECKING([whether CC supports -no-pie])
4747
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
4848
[AC_MSG_RESULT([yes])]

0 commit comments

Comments
 (0)