mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-20 22:09:10 +00:00
more compatibility tweaks
This commit is contained in:
parent
9c2247c15c
commit
03e4dbbec1
2 changed files with 18 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
CC= @CC@
|
CC= @CC@
|
||||||
CSTD= @CSTD@ -Wall
|
CSTD= @CSTD@ -Wall
|
||||||
CFLAGS= $(CSTD) @CFLAGS@ -DED25519_@ED25519IMPL@ @MYDEFS@
|
CFLAGS= $(CSTD) @CFLAGS@ @CPPFLAGS@ -DED25519_@ED25519IMPL@ @MYDEFS@
|
||||||
ASFLAGS=
|
ASFLAGS=
|
||||||
LDFLAGS= @NOPIE@ @LDFLAGS@
|
LDFLAGS= @NOPIE@ @LDFLAGS@
|
||||||
MV= mv
|
MV= mv
|
||||||
|
|
20
configure.ac
20
configure.ac
|
@ -37,16 +37,30 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||||
CFLAGS="$oldcflags"
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
nopie=""
|
nopie=""
|
||||||
|
|
||||||
oldcflags="$CFLAGS"
|
oldcflags="$CFLAGS"
|
||||||
CFLAGS="-no-pie"
|
CFLAGS="-nopie"
|
||||||
AC_MSG_CHECKING([whether CC supports -no-pie])
|
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])]
|
||||||
[nopie="-no-pie"],
|
[nopie="-nopie"],
|
||||||
[AC_MSG_RESULT([no])]
|
[AC_MSG_RESULT([no])]
|
||||||
)
|
)
|
||||||
CFLAGS="$oldcflags"
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
|
if test "x$nopie" = "x"
|
||||||
|
then
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
CFLAGS="-no-pie"
|
||||||
|
AC_MSG_CHECKING([whether CC supports -no-pie])
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||||
|
[AC_MSG_RESULT([yes])]
|
||||||
|
[nopie="-no-pie"],
|
||||||
|
[AC_MSG_RESULT([no])]
|
||||||
|
)
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
fi
|
||||||
|
|
||||||
MYDEFS=""
|
MYDEFS=""
|
||||||
|
|
||||||
ed25519impl=""
|
ed25519impl=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue