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_HELP_STRING(--enable-opt,Optimize for the native CPU - The resulting library will be faster but not portable)],
|
||||||
[
|
[
|
||||||
AS_IF([test "x$enableval" = "xyes"], [
|
AS_IF([test "x$enableval" = "xyes"], [
|
||||||
CFLAGS="$CFLAGS -O3 -march=native"
|
AX_CHECK_COMPILE_FLAG([-Ofast], [CFLAGS="$CFLAGS -Ofast"])
|
||||||
LDFLAGS="$LDFLAGS -O3 -march=native"])
|
AX_CHECK_COMPILE_FLAG([-march=native], [CFLAGS="$CFLAGS -march=native"])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_SUBST([MAINT])
|
AC_SUBST([MAINT])
|
||||||
|
Loading…
Reference in New Issue
Block a user