less strict nopie check

apparently including -Werror broke detection in clang
This commit is contained in:
cathugger
2019-05-05 22:43:26 +00:00
parent 9eae27b334
commit 6454595206

View File

@@ -30,7 +30,7 @@ fi
nopie="" nopie=""
oldcflags="$CFLAGS" oldcflags="$CFLAGS"
CFLAGS="-nopie -Werror" CFLAGS="-nopie"
AC_MSG_CHECKING([whether CC supports -nopie]) AC_MSG_CHECKING([whether CC supports -nopie])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])] [AC_MSG_RESULT([yes])]
@@ -42,7 +42,7 @@ CFLAGS="$oldcflags"
if test "x$nopie" = "x" if test "x$nopie" = "x"
then then
oldcflags="$CFLAGS" oldcflags="$CFLAGS"
CFLAGS="-no-pie -Werror" CFLAGS="-no-pie"
AC_MSG_CHECKING([whether CC supports -no-pie]) AC_MSG_CHECKING([whether CC supports -no-pie])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])] [AC_MSG_RESULT([yes])]