summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2012-12-07 03:32:50 +0000
committerPeter Powell <petpow@saberuk.com>2012-12-07 03:32:50 +0000
commitc468e9b368991c0cab2032cdec513ad25b57e8d9 (patch)
treeda1ebb5fe27fe35159f59eab62a87e1d5d463869 /make
parent391ec2c499523e98c681ccf5bf9f03a4fe551f57 (diff)
Fix invalid argument warnings on clang.
Diffstat (limited to 'make')
-rw-r--r--make/template/main.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 1c61547fd..87a80162c 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -87,7 +87,10 @@ INSTMODE_LIB = 0644
DBGOK=0
@IFEQ $(D) 0
- CXXFLAGS += -O2 -g1
+ CXXFLAGS += -O2
+ @IFEQ $(CC) gcc
+ CXXFLAGS += -g1
+ @ENDIF
HEADER = std-header
DBGOK=1
@ENDIF