summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2017-05-25 11:01:53 +0100
committer smf- <smf-@users.noreply.github.com>2017-05-25 11:02:24 +0100
commit104fe318ac44e084b8ec468bb3c9b5d142915d67 (patch)
tree47ab1e78241d61e3e43c7b5392dc8bf3d381c676
parent93397779014bf38e372f7bc449bb8c7ac3896a7e (diff)
don't use -static on msys2 clang 4.0.0 as it's currently broken, also removed -static-libgcc & -static-libstdc++ on gcc builds as they have no effect if you use -static (nw)
-rw-r--r--scripts/genie.lua10
1 files changed, 7 insertions, 3 deletions
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 {