summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-21 16:28:33 +0200
committer hap <happppp@users.noreply.github.com>2020-06-21 16:28:47 +0200
commit34a3ae13434ec5f2c7e38bcc563acfa5c7d1bcd5 (patch)
treee65174f738318c47e95cafa03389cd0f31954b24
parent9fb2ec21aae4aed8a4aef82addcfc96328a61904 (diff)
genie: mingw sdl build fails with end-group auto added by that LinkSupportCircularDependencies flag option (nw)
-rw-r--r--scripts/genie.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 19c892d6c65..0255815e367 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -1269,15 +1269,18 @@ configuration { "osx* or xcode4" }
}
configuration { "mingw*" }
- if _OPTIONS["osd"]~="sdl"
- then
+ if _OPTIONS["osd"]=="sdl" then
+ linkoptions {
+ "-Wl,--start-group",
+ }
+ else
linkoptions {
"-static",
}
+ flags {
+ "LinkSupportCircularDependencies",
+ }
end
- flags {
- "LinkSupportCircularDependencies",
- }
links {
"user32",
"winmm",