Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/snc.lua')
-rw-r--r--src/tools/snc.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/snc.lua b/src/tools/snc.lua
index c4c7d42..e829d68 100644
--- a/src/tools/snc.lua
+++ b/src/tools/snc.lua
@@ -123,14 +123,15 @@
---
--- Returns a list of linker flags for library search directories and library
--- names. See bug #1729227 for background on why the path must be split.
---
+ --
+ -- This is poorly named: returns a list of linker flags for external
+ -- (i.e. system, or non-sibling) libraries. See bug #1729227 for
+ -- background on why the path must be split.
+ --
function premake.snc.getlinkflags(cfg)
- local result = { }
- for _, value in ipairs(premake.getlinks(cfg, "all", "basename")) do
+ local result = {}
+ for _, value in ipairs(premake.getlinks(cfg, "system", "name")) do
table.insert(result, '-l' .. _MAKE.esc(value))
end
return result