diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-12-01 11:25:22 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-12-01 11:25:31 +0100 |
commit | 2cf7b334058a926ea9b20d8dd8d9eb9c6dbc191e (patch) | |
tree | a3c771b2b57cb0910b1da7acac41927b1f50de8e | |
parent | 9cb13ad1d1f9f615a32393adf821538cbaf8f771 (diff) |
test: link to -static-libgcc for win32
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 $@" |