mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
more compatibility tweaks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
CC= @CC@
|
||||
CSTD= @CSTD@ -Wall
|
||||
CFLAGS= $(CSTD) @CFLAGS@ -DED25519_@ED25519IMPL@ @MYDEFS@
|
||||
CFLAGS= $(CSTD) @CFLAGS@ @CPPFLAGS@ -DED25519_@ED25519IMPL@ @MYDEFS@
|
||||
ASFLAGS=
|
||||
LDFLAGS= @NOPIE@ @LDFLAGS@
|
||||
MV= mv
|
||||
|
||||
20
configure.ac
20
configure.ac
@@ -37,16 +37,30 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||
CFLAGS="$oldcflags"
|
||||
|
||||
nopie=""
|
||||
|
||||
oldcflags="$CFLAGS"
|
||||
CFLAGS="-no-pie"
|
||||
AC_MSG_CHECKING([whether CC supports -no-pie])
|
||||
CFLAGS="-nopie"
|
||||
AC_MSG_CHECKING([whether CC supports -nopie])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||
[AC_MSG_RESULT([yes])]
|
||||
[nopie="-no-pie"],
|
||||
[nopie="-nopie"],
|
||||
[AC_MSG_RESULT([no])]
|
||||
)
|
||||
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=""
|
||||
|
||||
ed25519impl=""
|
||||
|
||||
Reference in New Issue
Block a user