summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-14 06:23:00 +0000
committerEric Andersen <andersen@codepoet.org>2003-10-14 06:23:00 +0000
commit34c5a8290b32d93beca6ae8f9c346bbadf408591 (patch)
treef01b4f95369e2c9a3dfef21a1a4cb78ac39a91e0 /ldso/libdl
parent6d59082e74a384fd9f052e170bab166051de3a37 (diff)
Enable full debug support for ld-uClibc and libdl
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 12461d77e..00142a8f2 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -26,6 +26,15 @@ XXFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) \
-DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \
-DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
-fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
+
+ifeq ($(DODEBUG),y)
+XXFLAGS=$(XWARNINGS) -O0 -g3 $(XARCH_CFLAGS) $(CPU_CFLAGS) \
+ -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
+ -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \
+ -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
+ -fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
+endif
+
XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp")
XXFLAGS_NOPIC:=$(XXFLAGS)
ifeq ($(DOPIC),y)