From df6a6155c1748d5d71195523b321e05d9bbf627a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com> Date: Mon, 15 Sep 2014 22:15:00 -0300 Subject: [PATCH] (Makefile) Pass -static-libgcc to the linker on Win32 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 5fda198409..fd46ec14d8 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ LIBS := DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_CC_RESAMPLER -DHAVE_OVERLAY DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"' +ifneq ($(findstring Win32,$(OS)),) + LDFLAGS += -static-libgcc +endif + include Makefile.common HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)