From 9b9a3a452ed7fe4599405936442b56000547ea0c Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Thu, 14 Mar 2019 16:11:43 +0100 Subject: [PATCH] Update configure.ac, do not override CFLAGS from the system By default, AX_CHECK_COMPILE_FLAG overrides the *FLAG, so lets stop doing that. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c441da9..9cf20bc 100644 --- a/configure.ac +++ b/configure.ac @@ -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])