From 34a3ae13434ec5f2c7e38bcc563acfa5c7d1bcd5 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 21 Jun 2020 16:28:33 +0200 Subject: genie: mingw sdl build fails with end-group auto added by that LinkSupportCircularDependencies flag option (nw) --- scripts/genie.lua | 13 ++++++++----- 1 file 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", -- cgit v1.2.3