solve the awful order dependant linking for gcc/clang! + get rid of whole archive flag

This commit is contained in:
otavepto 2024-06-08 02:55:45 +03:00
parent de1ddcb6a2
commit 8c3815b9af

View File

@ -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/*"] = {