From 96e0e92afd6ae57c55b75b42c4c6156ae5b3f341 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 May 2016 23:47:21 -0400 Subject: [PATCH] get default CFLAGS/CXXFLAGS from configure Since autoconf already sets up default compiler flags for us, use those. These also come from the user's build settings. --- Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index b8fbb81..2d677d7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -103,9 +103,11 @@ STRIP:=@STRIP@ OBJECTS:=$(subst .cc,.o,$(SOURCE)) TOP_DIR:=@top_srcdir@ TOP_BUILDDIR:=@top_builddir@ -CFLAGS+=-g -Wall -O3 +CFLAGS?=@CFLAGS@ +CFLAGS+=-Wall CFLAGS+=@LFS_FLAGS@ -CXXFLAGS+=-g -Wall -fno-strict-aliasing -std=gnu++98 +CXXFLAGS?=@CXXFLAGS@ +CXXFLAGS+=-Wall -fno-strict-aliasing -std=gnu++98 CXXFLAGS+=@CXXOPTIMISE_FLAG@ CXXFLAGS+=@CXXDEBUG_FLAG@ CXXFLAGS+=@CXX_STRERROR_FLAG@