Have --enable-opt imply -Ofast

This commit is contained in:
Frank Denis 2015-12-29 15:46:23 +01:00
parent 387dd75e88
commit d740901df0

View File

@ -139,8 +139,8 @@ 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 -march=native -save-temps"
LDFLAGS="$LDFLAGS -march=native"])
CFLAGS="$CFLAGS -Ofast -march=native -save-temps"
LDFLAGS="$LDFLAGS -Ofast -march=native"])
])
AC_SUBST([MAINT])