summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-06-21 11:06:58 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2013-06-27 21:58:06 +0200
commit0056b811f7c94ea8f31e138bf827c5ce90ea5b66 (patch)
tree1acd0616d1c04edcc4b1081c483c0df2fd8d82e2
parent6940ade836c1355bcb99ebc1762902936b8ac464 (diff)
downloadbuildroot-novena-0056b811f7c94ea8f31e138bf827c5ce90ea5b66.tar.gz
buildroot-novena-0056b811f7c94ea8f31e138bf827c5ce90ea5b66.zip
toolchain/uClibc: properly honor DEBUG and STRIP options
The default uClibc configurations strip the resulting binaries/libraries and don't add debug symbols which is a problem when wanting to debug issues. Bind the buildroot BR2_STRIP_* option to uClibc .config DO_STRIP and BR2_ENABLE_DEBUG to uClibc DO_DEBUG. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--toolchain/uClibc/uclibc.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index da1830ff5..2036dab14 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -287,6 +287,18 @@ endif
$(SED) '/LINUXTHREADS_OLD/d' $(UCLIBC_DIR)/.oldconfig
$(SED) '/PTHREADS_DEBUG_SUPPORT/d' $(UCLIBC_DIR)/.oldconfig
$(SED) '/UCLIBC_HAS_THREADS_NATIVE/d' $(UCLIBC_DIR)/.oldconfig
+ $(SED) '/DODEBUG /d' $(UCLIBC_DIR)/.oldconfig
+ $(SED) '/DOSTRIP/d' $(UCLIBC_DIR)/.oldconfig
+ifeq ($(BR2_STRIP_none),y)
+ echo "# DOSTRIP is not set" >> $(UCLIBC_DIR)/.oldconfig
+else
+ echo "DOSTRIP=y" >> $(UCLIBC_DIR)/.oldconfig
+endif
+ifeq ($(BR2_ENABLE_DEBUG),y)
+ echo "DODEBUG=y" >> $(UCLIBC_DIR)/.oldconfig
+else
+ echo "# DODEBUG is not set" >> $(UCLIBC_DIR)/.oldconfig
+endif
ifeq ($(BR2_PTHREADS_NONE),y)
echo "# UCLIBC_HAS_THREADS is not set" >> $(UCLIBC_DIR)/.oldconfig
else