summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-10 20:28:12 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-10 20:28:12 +0000
commit0ec5f81305ea56973fbd6a1333cfbb28ea8a475b (patch)
tree140826d15fcb7c90a73e7e8f30b80b05a2b323a8
parente6d0f824cc94f1a75aa3a5b2d54b7c67a3a27e39 (diff)
A few minor little changes
-rw-r--r--test/Config2
-rw-r--r--test/Rules.mak13
2 files changed, 7 insertions, 8 deletions
diff --git a/test/Config b/test/Config
index 3536acf88..80fc6b3d3 100644
--- a/test/Config
+++ b/test/Config
@@ -1,7 +1,7 @@
# Configuration for uClibc test apps.
# Set the following to `true' to make a debuggable build.
-DODEBUG = false
+DODEBUG = true
# If you want to compile using uClibc as a shared library, turn this on.
DODYNAMIC = true
diff --git a/test/Rules.mak b/test/Rules.mak
index 4d79db0e6..df00cae56 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -62,20 +62,21 @@ check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1;
# use '-Os' optimization if available, else use -O2, allow Config to override
OPTIMIZATION+=$(call check_gcc,-Os,-O2)
# Override optimization settings when debugging
-ifeq ($(DODEBUG),y)
+ifeq ($(DODEBUG),true)
OPTIMIZATION=-O0
endif
-XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
+XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS)))
-CFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS)
+CFLAGS=--uclibc-use-build-dir $(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS)
GLIBC_CFLAGS+=$(XWARNINGS) $(OPTIMIZATION)
+LDFLAGS=--uclibc-use-build-dir
ifeq ($(DODEBUG),true)
CFLAGS+=-g
GLIBC_CFLAGS+=-g
- LDFLAGS =-Wl,-warn-common
- GLIBC_LDFLAGS =-Wl,-warn-common
+ LDFLAGS = -g -Wl,-warn-common
+ GLIBC_LDFLAGS =-g -Wl,-warn-common
STRIPTOOL =true -Since_we_are_debugging
else
LDFLAGS =-s -Wl,-warn-common
@@ -87,5 +88,3 @@ ifneq ($(DODYNAMIC),true)
LDFLAGS +=-static
GLIBC_LDFLAGS +=-static
endif
-CFLAGS+=--uclibc-use-build-dir
-LDFLAGS+=--uclibc-use-build-dir