summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-12-01 11:25:22 +0100
committerAlfred E. Heggestad <aeh@db.org>2015-12-01 11:25:31 +0100
commit2cf7b334058a926ea9b20d8dd8d9eb9c6dbc191e (patch)
treea3c771b2b57cb0910b1da7acac41927b1f50de8e /Makefile
parent9cb13ad1d1f9f615a32393adf821538cbaf8f771 (diff)
test: link to -static-libgcc for win32
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bac9b5a..f0c6ca1 100644
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,11 @@ endif
LIBS += -lrem -lm
LIBS += -L$(SYSROOT)/lib
+ifeq ($(OS),win32)
+TEST_LIBS += -static-libgcc
+endif
+
+
-include $(APP_OBJS:.o=.d)
-include $(TEST_OBJS:.o=.d)
@@ -210,7 +215,7 @@ $(TEST_BIN): $(STATICLIB) $(TEST_OBJS)
@echo " LD $@"
$(HIDE)$(CXX) $(LFLAGS) $(TEST_OBJS) \
-L$(LIBRE_SO) -L. \
- -l$(PROJECT) -lre $(LIBS) -o $@
+ -l$(PROJECT) -lre $(LIBS) $(TEST_LIBS) -o $@
$(BUILD)/%.o: %.c $(BUILD) Makefile $(APP_MK)
@echo " CC $@"