From 6f7f469430ea05946a11dd41f62010961be6285e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Mar 2017 17:55:28 +0300 Subject: Enable console in unit tests if build with mingw. --- src/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 89f09413e..b18ee6d06 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1938,6 +1938,7 @@ TESTS = manaplustests check_PROGRAMS = manaplustests manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \ -DUNITTESTS +manaplustests_LDFLAGS = if USE_PHYSFS manaplustests_CXXFLAGS += -DUSE_PHYSFS endif @@ -1950,7 +1951,7 @@ endif if ENABLE_ASSERTS manaplustests_CXXFLAGS += -DENABLE_ASSERTS if HAVE_RDYNAMIC -manaplustests_LDFLAGS = -rdynamic +manaplustests_LDFLAGS += -rdynamic endif endif if ENABLE_GLIBCDEBUG @@ -1971,6 +1972,7 @@ manaplustests_SOURCES = ${SRC} \ if MINGW manaplustests_SOURCES += manaplus.rc +manaplustests_LDFLAGS += -mconsole endif if USE_PHYSFS -- cgit v1.2.3-70-g09d2