diff options
| author | sephiroth99 <sephiroth99@gmail.com> | 2017-04-26 02:25:12 -0400 |
|---|---|---|
| committer | Doug Johnson <dougvj@gmail.com> | 2017-07-11 11:47:24 -0600 |
| commit | c43845842616f529dfaa7c21d092c1a15fae18a7 (patch) | |
| tree | 607c8c1d01f8d90b3ebfb00a638475d1d9df19fa /premake5.lua | |
| parent | 6bf05d6e63ea6aa9f519b5feba6624d9c53bf94a (diff) | |
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.
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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", |
