From 1e699392384f98612a4c642eb0738d9968629f0d Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Tue, 28 May 2024 22:19:32 +0300 Subject: [PATCH] the -static flag is meant for the linker not the compiler --- premake5-deps.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/premake5-deps.lua b/premake5-deps.lua index f5fc47f0..b3ff7e3b 100644 --- a/premake5-deps.lua +++ b/premake5-deps.lua @@ -227,8 +227,6 @@ local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_ table.insert(all_cxxflags_init, '-m32') end if os.target() == 'windows' then -- MinGW on Windows - table.insert(all_cflags_init, '-static') - table.insert(all_cxxflags_init, '-static') -- from docs: "specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor, -- but does not influence the choice of runtime library/startup code" -- optional really