BUILD: Fix N64 build of test runner

This commit is contained in:
Colin Snover 2017-01-15 13:31:45 -06:00
parent a0e9556554
commit 5d22cc438f
2 changed files with 5 additions and 0 deletions

1
configure vendored
View File

@ -2603,6 +2603,7 @@ case $_host_os in
append_var DEFINES "-DDISABLE_NES_APU"
append_var DEFINES "-DDISABLE_SID"
append_var DEFINES "-DREDUCE_MEMORY_USAGE"
add_line_to_config_mk 'N64 = 1'
;;
ps2)
append_var CXXFLAGS "-G2"

View File

@ -19,6 +19,10 @@ TEST_CFLAGS := $(CFLAGS) -I$(srcdir)/test/cxxtest
TEST_LDFLAGS := $(LDFLAGS) $(LIBS)
TEST_CXXFLAGS := $(filter-out -Wglobal-constructors,$(CXXFLAGS))
ifdef N64
TEST_LDFLAGS := $(filter-out -mno-crt0,$(TEST_LDFLAGS))
endif
ifdef HAVE_GCC3
# In test/common/str.h, we test a zero length format string. This causes GCC
# to generate a warning which in turn poses a problem when building with -Werror.