CFLAGS_COMMON += -g
# only add -g if no -g flag is in $(CFLAGS)
endif
-ifeq ($(findstring $(CFLAGS),-O),)
- CFLAGS_COMMON += -O
+ifeq ($(findstring $(CFLAGS),-O0),)
+ CFLAGS_COMMON += -O0
# only add -O if no -O flag is in $(CFLAGS)
endif
CPPFLAGS_COMMON +=
CFLAGS_COMMON += -g
# only add -g if no -g flag is in $(CFLAGS)
endif
-ifeq ($(findstring $(CFLAGS),-O),)
- CFLAGS_COMMON += -O
+ifeq ($(findstring $(CFLAGS),-O0),)
+ CFLAGS_COMMON += -O0
# only add -O if no -O flag is in $(CFLAGS)
endif
CFLAGS_COMMON += -pg