From c43845842616f529dfaa7c21d092c1a15fae18a7 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Wed, 26 Apr 2017 02:25:12 -0400 Subject: [PATCH] Enable premake linkgroups when building Linux applications The linkgroups option is a convenience option that makes it possible to specify all the libraries required to build an application (console or GUI) in any order. It also prevents circular dependency issues between libraries. Basically, it surrounds the list of libraries with the start-group/end-group options when calling the linker. --- premake5.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/premake5.lua b/premake5.lua index 6f015fc54..a5ac7f678 100644 --- a/premake5.lua +++ b/premake5.lua @@ -100,6 +100,9 @@ filter("platforms:Linux") "`pkg-config --libs gtk+-3.0`", }) +filter({"platforms:Linux", "kind:*App"}) + linkgroups("On") + filter({"platforms:Linux", "language:C++", "toolset:gcc"}) buildoptions({ "--std=c++11",