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
path: root/src/tools
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2011-05-27 18:55:06 +0400
committerLiam Devine <dmail00@gmail.com>2011-05-27 18:55:06 +0400
commit993959c899b9088974ebd89e0aeb0c53afd3bfcc (patch)
treeb065b2427ee958364a4af1608681e181e2ffca97 /src/tools
parent82a86229de6b571c89bfb4b67dffcf38e1fc1703 (diff)
Incorrect relative paths for gmake sibling static libraries
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/gcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua
index 9713c2e..f9984f9 100644
--- a/src/tools/gcc.lua
+++ b/src/tools/gcc.lua
@@ -183,7 +183,8 @@
local pathstyle = premake.getpathstyle(value)
local namestyle = premake.getnamestyle(value)
local linktarget = premake.gettarget(value, "link", pathstyle, namestyle, cfg.system)
- table.insert(result, linktarget.fullpath)
+ local rebasedpath = path.rebase(linktarget.fullpath, value.location, cfg.location)
+ table.insert(result, rebasedpath)
else
--premake does not support creating frameworks so this is just a SharedLib link
--link using -lname