From 01c3f96492b768332f1065a353b51d041bc7ea26 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 24 Dec 2014 11:45:50 +0100 Subject: [PATCH] Added -static-libgcc and -static-libstdc++ link options to mingw in order to make it independent from mingw dll's --- scripts/toolchain.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 6c7ac0b..c2ffaa4 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -390,6 +390,8 @@ function toolchain(_buildDir, _libDir) } linkoptions { "-Wl,--gc-sections", + "-static-libgcc", + "-static-libstdc++", } configuration { "x32", "mingw-gcc" }