summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-22 18:11:47 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-22 18:11:47 +0000
commit45d4c358eeee8cdba42106fd9b18e388483f6187 (patch)
tree3e5151d214b79046c8f584460266a38e4b67d402
parentdb7ad6ef0fdd95edad8942eacbdf75439de4034b (diff)
Oops. Only enable debug when debugging...
-rw-r--r--ldso/ldso/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile
index 7cd1b9999..b0f212f8e 100644
--- a/ldso/ldso/Makefile
+++ b/ldso/ldso/Makefile
@@ -35,13 +35,12 @@ ifeq ($(DODEBUG),y)
XXFLAGS=$(XWARNINGS) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
-fno-builtin -nostdinc -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
-endif
-
ifeq ($(TARGET_ARCH),powerpc)
XXFLAGS+=-Os -g3
else
XXFLAGS+=-O0 -g3
endif
+endif
XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp")
LDFLAGS=$(CPU_LDFLAGS-y) -shared --warn-common --export-dynamic --sort-common \