fastlib stuff

parent bf4d8ced
......@@ -19,12 +19,12 @@ lib_LTLIBRARIES = libed25519prims.la
if FAST
lib_LTLIBRARIES += libed25519primsfast.la
endif
libed25519prims_la_SOURCES = ed25519-prims.c
libed25519primsfast_la_SOURCES = ed25519-prims.c
include_HEADERS = ed25519.h ed25519-prims.h ed25519-donna-portable-identify.h
libed25519prims_la_LIBADD =
libed25519prims_la_LDFLAGS = -version-info ${VERSION} -no-undefined
libed25519prims_la_CFLAGS = @flags@
libed25519prims_la_SOURCES = ed25519-prims.c
libed25519primsfast_la_LIBADD =
libed25519primsfast_la_LDFLAGS = -version-info ${VERSION} -no-undefined
libed25519primsfast_la_CFLAGS = @fastflags@
libed25519primsfast_la_SOURCES = ed25519-prims.c
......@@ -15,7 +15,7 @@ nomflags="`echo $CFLAGS | sed -e 's/-m[[^ ]]* //g'`"
case "$host_alias" in
arm-linux-androideabi)
flags="$CFLAGS"
fastflags="-O3 -mfpu=neon-vfpv4"
fastflags="-O3 -mfpu=neon-vfpv4 $nomflags"
enable_fast=yes
CFLAGS=""
;;
......@@ -24,7 +24,7 @@ case "$host_alias" in
;;
i686-linux-android)
flags="$CFLAGS"
fastflags="-O3 -m32 -mssse3"
fastflags="-O3 -m32 -mssse3 $nomflags"
enable_fast=yes
CFLAGS=""
;;
......@@ -53,7 +53,6 @@ PRECLANG=${PRECC%clang*}
LIBTOOL=${PRECLANG}libtool
echo "Libtool: $PRECC, $PRECLANG, $LIBTOOL"
AC_SUBST(nomflags)
AC_SUBST(fastflags)
AC_SUBST(flags)
AC_SUBST(LIBTOOL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment