summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-13 08:31:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-13 08:31:15 +0000
commit373e5f5e8dec0e8eae528eee0fd64608af456c9e (patch)
treeaa9e24ab2efd4fbb3d3d3896bf92542ef0f50829 /rules.mk
parent818729cfd2b4db32e76778820522812858b1d79f (diff)
downloadmtk-20170518-373e5f5e8dec0e8eae528eee0fd64608af456c9e.zip
mtk-20170518-373e5f5e8dec0e8eae528eee0fd64608af456c9e.tar.gz
mtk-20170518-373e5f5e8dec0e8eae528eee0fd64608af456c9e.tar.bz2
add new option for enabling debugging symbols
SVN-Revision: 12591
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index 2214433..c8180dc 100644
--- a/rules.mk
+++ b/rules.mk
@@ -63,7 +63,7 @@ TARGET_DIR:=$(BUILD_DIR)/root-$(BOARD)
IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/ipkg
TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/host/bin:$(PATH)
-TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)
+TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) $(if $(CONFIG_DEBUG),-g3)
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
TARGET_LDFLAGS:=-L$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
@@ -129,7 +129,7 @@ TARGET_CONFIGURE_OPTS:= \
SIZE=$(TARGET_CROSS)size
# strip an entire directory
-ifneq ($(CONFIG_BUILD_DEVELOPER_SYSTEM),)
+ifneq ($(CONFIG_NO_STRIP),)
RSTRIP:=:
else
RSTRIP:= \