From ef7c2d8b3e0590f0b74bea23ab802e706046939e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 12 Jan 2016 13:51:38 +0100 Subject: [PATCH] Revert "Do not override environment CFLAGS and CXXFLAGS" This reverts commit 80ebd60e7ca3c48a19b94ddaeebb23182b703178. The reason why we cleared CFLAGS/CXXFLAGS was because otherwise we get a default value of -O2, which interferes with the defaults set in the Makefile. (E.g. "make OPTIMIZE=0" should not pass -O2.) --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 1b99702fe..3a24053bb 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,8 @@ if test "$sys_name" = sunos; then fi +CFLAGS= +CXXFLAGS= AC_PROG_CC AC_PROG_CXX