From fbd0bae6d6dfa0af786c906b419e01bb389ead3e Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 29 May 2015 02:22:48 +0200 Subject: [PATCH] build: disable autoconf "-g -O2" default CFLAGS We have AC_C_FLAG and try -Os before -O2. Signed-off-by: David Lamparter --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index e46e44a8b7..a8e820a237 100755 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,10 @@ LIBS="$LIBS -ltcmalloc_minimal" esac],[tcmalloc_enabled=false]) +dnl Thanks autoconf, but we don't want a default -g -O2. We have our own +dnl flag determination logic. +CFLAGS="${CFLAGS:-}" + dnl -------------------- dnl Check CC and friends dnl --------------------