From 8c3815b9afdc6dd69bfa96bd61ab3773e4115d86 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 8 Jun 2024 02:55:45 +0300 Subject: [PATCH] solve the awful order dependant linking for gcc/clang! + get rid of whole archive flag --- premake5.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/premake5.lua b/premake5.lua index 8a11f781..2d4cdb90 100644 --- a/premake5.lua +++ b/premake5.lua @@ -459,6 +459,7 @@ flags { } targetprefix "" -- prevent adding the prefix libxxx on linux visibility "Hidden" -- hide all symbols by default on GCC (unless they are marked visible) +linkgroups "On" -- turn off the awful order dependent linking on gcc/clang, causes the linker to go back and forth to find missing symbols exceptionhandling "On" -- "Enable exception handling. ... although it does not affect execution." vpaths { -- just for visual niceness, see: https://premake.github.io/docs/vpaths/ ["headers/*"] = {