mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Compilation with -march=native fails on Raspbian/Raspberry Pi 3
This commit is contained in:
parent
aeacf96911
commit
40511c47d4
@ -159,8 +159,9 @@ AC_ARG_ENABLE(opt,
|
||||
[AS_HELP_STRING(--enable-opt,Optimize for the native CPU - The resulting library will be faster but not portable)],
|
||||
[
|
||||
AS_IF([test "x$enableval" = "xyes"], [
|
||||
CFLAGS="$CFLAGS -O3 -march=native"
|
||||
LDFLAGS="$LDFLAGS -O3 -march=native"])
|
||||
AX_CHECK_COMPILE_FLAG([-Ofast], [CFLAGS="$CFLAGS -Ofast"])
|
||||
AX_CHECK_COMPILE_FLAG([-march=native], [CFLAGS="$CFLAGS -march=native"])
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST([MAINT])
|
||||
|
Loading…
Reference in New Issue
Block a user