From 373503f4a9a990054b51806dd276f34107bd60bc Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 21 Feb 2013 05:27:26 +0100 Subject: [PATCH] Statically link std libraries under mingw Allows for easier redistribution. No functional change. --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2