diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Config | 2 | ||||
-rw-r--r-- | test/Rules.mak | 13 |
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 |