From: Robert Buchholz Date: Wed, 7 Jan 2009 14:46:13 +0000 (+0100) Subject: Do not set -O2 -g CFLAGS if CFLAGS are already defined (in the env). X-Git-Tag: v0.9.8~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0738dbb38839901cef4ae23bbbe78ceed2835e1;p=thirdparty%2Fiw.git Do not set -O2 -g CFLAGS if CFLAGS are already defined (in the env). --- diff --git a/Makefile b/Makefile index 9ff0c0d..2c629fe 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ MKDIR ?= mkdir -p INSTALL ?= install CC ?= "gcc" +CFLAGS ?= -O2 -g CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -CFLAGS += -O2 -g OBJS = iw.o info.o phy.o interface.o station.o util.o mpath.o reg.o mesh.o genl.o ALL = iw