mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
less strict nopie check
apparently including -Werror broke detection in clang
This commit is contained in:
@@ -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])]
|
||||||
|
|||||||
Reference in New Issue
Block a user