X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=b23d671f07600388a87a3956fc211980f1659352;hp=6c90ac2bac8ca8fef68801356b21ca0058d8cf03;hb=abb40777bf7dbfd2f5250840f84b4c6965719f46;hpb=c5ec94d0f1b128fc2c691c7231663a345409d5cc diff --git a/src/Makefile b/src/Makefile index 6c90ac2b..b23d671f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -256,6 +256,10 @@ endif ### 3.3 General linker settings LDFLAGS = $(EXTRALDFLAGS) +ifeq ($(comp),mingw) + LDFLAGS += -static-libstdc++ -static-libgcc +endif + ### On mingw use Windows threads, otherwise POSIX ifneq ($(comp),mingw) # Haiku has pthreads in its libroot, so only link it in on other platforms