summaryrefslogtreecommitdiff
path: root/test/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'test/Rules.mak')
-rw-r--r--test/Rules.mak7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 6acc13ffa..9d5bd8296 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -63,9 +63,9 @@ CFLAGS += $(OPTIMIZATION) $(CPU_CFLAGS) $(XWARNINGS)
# Can't add $(OPTIMIZATION) here, it may be target-specific.
# Just adding -Os for now.
-HOST_CFLAGS += $(XCOMMON_CFLAGS) -Os $(XWARNINGS)
+HOST_CFLAGS += $(XCOMMON_CFLAGS) -Os $(XWARNINGS) -std=gnu99
-LDFLAGS := $(CPU_LDFLAGS-y) -Wl,-z,defs -Wl,-z,now
+LDFLAGS := $(CPU_LDFLAGS-y) -Wl,-z,now
ifeq ($(DODEBUG),y)
CFLAGS += -g
HOST_CFLAGS += -g
@@ -77,8 +77,7 @@ else
endif
ifneq ($(HAVE_SHARED),y)
- LDFLAGS += -Wl,-static
- HOST_LDFLAGS += -Wl,-static
+ LDFLAGS += -Wl,-static -static-libgcc
endif
LDFLAGS += -B$(top_builddir)lib -Wl,-rpath,$(top_builddir)lib -Wl,-rpath-link,$(top_builddir)lib