mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-03 11:54:45 +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=""
|
nopie=""
|
||||||
|
|
||||||
oldcflags="$CFLAGS"
|
oldcflags="$CFLAGS"
|
||||||
CFLAGS="-nopie"
|
CFLAGS="-nopie -Werror"
|
||||||
AC_MSG_CHECKING([whether CC supports -nopie])
|
AC_MSG_CHECKING([whether CC supports -nopie])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
|
||||||
[AC_MSG_RESULT([yes])]
|
[AC_MSG_RESULT([yes])]
|
||||||
[nopie="-nopie"],
|
[nopie="-nopie"],
|
||||||
[AC_MSG_RESULT([no])]
|
[AC_MSG_RESULT([no])]
|
||||||
|
@ -42,9 +42,9 @@ CFLAGS="$oldcflags"
|
||||||
if test "x$nopie" = "x"
|
if test "x$nopie" = "x"
|
||||||
then
|
then
|
||||||
oldcflags="$CFLAGS"
|
oldcflags="$CFLAGS"
|
||||||
CFLAGS="-no-pie"
|
CFLAGS="-no-pie -Werror"
|
||||||
AC_MSG_CHECKING([whether CC supports -no-pie])
|
AC_MSG_CHECKING([whether CC supports -no-pie])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
|
||||||
[AC_MSG_RESULT([yes])]
|
[AC_MSG_RESULT([yes])]
|
||||||
[nopie="-no-pie"],
|
[nopie="-no-pie"],
|
||||||
[AC_MSG_RESULT([no])]
|
[AC_MSG_RESULT([no])]
|
||||||
|
|
Loading…
Add table
Reference in a new issue