1
0
mirror of https://github.com/BLAKE2/libb2 synced 2024-11-26 08:53:49 +01:00

Update configure.ac, do not override CFLAGS from the system

By default, AX_CHECK_COMPILE_FLAG overrides the *FLAG, so lets stop doing that.
This commit is contained in:
Gianfranco Costamagna 2019-03-14 16:11:43 +01:00 committed by GitHub
parent 2c5142f12a
commit 9b9a3a452e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -60,7 +60,7 @@ AC_HELP_STRING([--enable-native],
[enable_native=yes]
)
AX_CHECK_COMPILE_FLAG([-O3], [CFLAGS=-O3])
AX_CHECK_COMPILE_FLAG([-O3], [CFLAGS="$CFLAGS -O3"])
dnl Not all architectures support -march=native
if test $enable_native == "yes"; then
AX_CHECK_COMPILE_FLAG([-march=native], [], [enable_native=no])