mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-02 03:24:24 +00:00
more strict and this time correct nopie check
This commit is contained in:
parent
6454595206
commit
565c2a968f
1 changed files with 4 additions and 4 deletions
|
@ -30,9 +30,9 @@ fi
|
|||
nopie=""
|
||||
|
||||
oldcflags="$CFLAGS"
|
||||
CFLAGS="-nopie"
|
||||
CFLAGS="-nopie -Werror"
|
||||
AC_MSG_CHECKING([whether CC supports -nopie])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
|
||||
[AC_MSG_RESULT([yes])]
|
||||
[nopie="-nopie"],
|
||||
[AC_MSG_RESULT([no])]
|
||||
|
@ -42,9 +42,9 @@ 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_LINK_IFELSE([AC_LANG_PROGRAM([])],
|
||||
[AC_MSG_RESULT([yes])]
|
||||
[nopie="-no-pie"],
|
||||
[AC_MSG_RESULT([no])]
|
||||
|
|
Loading…
Add table
Reference in a new issue