Browse Source

A few minor little changes

Eric Andersen 21 years ago
parent
commit
0ec5f81305
2 changed files with 7 additions and 8 deletions
  1. 1 1
      test/Config
  2. 6 7
      test/Rules.mak

+ 1 - 1
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

+ 6 - 7
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