summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/template/main.mk')
-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