summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-02 00:02:11 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-02 00:02:11 +0000
commit3cc033bed3c56455d42aad976ccf1a8d0dd2e269 (patch)
tree2ae4eb5b9d5df39c8d1f6dc2f0c981e09822d21e /test
parenta05c87bd5929dd130d5674c5083f7e6132d1163e (diff)
downloaduClibc-alpine-3cc033bed3c56455d42aad976ccf1a8d0dd2e269.tar.bz2
uClibc-alpine-3cc033bed3c56455d42aad976ccf1a8d0dd2e269.tar.xz
allow env to inject more CFLAGS/LDFLAGS, and remove old LSFLAGS
Diffstat (limited to 'test')
-rw-r--r--test/Rules.mak10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index a52de4f0a..8db8a9163 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -53,13 +53,9 @@ RM = rm -f
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
-BUILD_CFLAGS = -O2 -Wall
#--------------------------------------------------------
-# Check if 'ls -sh' works or not
-LSFLAGS = -l
-
# A nifty macro to make testing gcc features easier
check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
then echo "$(1)"; else echo "$(2)"; fi)
@@ -75,17 +71,17 @@ endif
XWARNINGS := $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
XARCH_CFLAGS := $(subst ",, $(strip $(ARCH_CFLAGS)))
XCOMMON_CFLAGS := -D_GNU_SOURCE -I$(top_builddir)test
-CFLAGS := $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include
+CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include
HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
ifeq ($(DODEBUG),y)
CFLAGS += -g
HOST_CFLAGS += -g
LDFLAGS += -g -Wl,-warn-common
- HOST_LDFLAGS := -g -Wl,-warn-common
+ HOST_LDFLAGS += -g -Wl,-warn-common
else
LDFLAGS += -s -Wl,-warn-common
- HOST_LDFLAGS := -s -Wl,-warn-common
+ HOST_LDFLAGS += -s -Wl,-warn-common
endif
ifneq ($(strip $(HAVE_SHARED)),y)