diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Rules.mak | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Rules.mak b/test/Rules.mak index ed311a163..dc0eecf69 100644 --- a/test/Rules.mak +++ b/test/Rules.mak @@ -75,10 +75,11 @@ else OPTIMIZATION += $(call check_gcc,-Os,-O2) endif -XWARNINGS = $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -XARCH_CFLAGS = $(subst ",, $(strip $(ARCH_CFLAGS))) -CFLAGS = $(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) -D_GNU_SOURCE -HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) -D_GNU_SOURCE +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) +HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) ifeq ($(DODEBUG),y) CFLAGS += -g |