2010-04-19 09:28:16 +00:00
|
|
|
--- a/config/makefile.conf
|
|
|
|
+++ b/config/makefile.conf
|
2009-05-20 16:55:01 +00:00
|
|
|
@@ -105,20 +105,23 @@ endif
|
2006-07-19 06:53:07 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_DEBUG
|
|
|
|
-CFLAGS += -g
|
|
|
|
+OPT_CFLAGS = -g
|
|
|
|
else
|
|
|
|
-LDFLAGS += -s
|
|
|
|
+OPT_LDFLAGS = -s
|
|
|
|
ifdef CONFIG_PLATFORM_SOLARIS
|
|
|
|
-CFLAGS += -O
|
|
|
|
+OPT_CFLAGS = -O
|
|
|
|
else
|
|
|
|
-CFLAGS += -O3
|
|
|
|
+OPT_CFLAGS = -O3
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif # CONFIG_DEBUG
|
|
|
|
endif # WIN32
|
|
|
|
|
|
|
|
-CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
|
|
|
|
-LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
|
|
|
|
+EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
|
|
|
|
+EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
|
|
|
|
+
|
|
|
|
+CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS)
|
|
|
|
+LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS)
|
|
|
|
|
|
|
|
endif # not 'clean'
|
|
|
|
|