diff --git a/scripts/genie.lua b/scripts/genie.lua index b1b435d521e..fd1e50e5f82 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1132,10 +1132,14 @@ configuration { "osx* or xcode4" } } configuration { "mingw*" } + local version = str_to_version(_OPTIONS["gcc_version"]) + if not (_OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang")) or version < 40000 + then + linkoptions { + "-static", + } + end linkoptions { - "-static-libgcc", - "-static-libstdc++", - "-static", "-Wl,--start-group", } links {