summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-12-12 23:39:36 +0800
committerruki <[email protected]>2024-12-12 23:39:36 +0800
commit63d3cafeacd89213324a77f15242f64d016ad8bf (patch)
tree89e84fefac01ef746270044a14e3cbe5360fa965
parent28b5447453e7acbafa5670578f891d71028a394e (diff)
fix error
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index dc016a327..4575f454d 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1073,13 +1073,13 @@ function _instance:_rawenvs()
envs.PATH = table.wrap(bindirs)
elseif self:is_binary() then
envs.PATH = {"bin"}
- elseif os.host() == "windows" and self:is_plat("windows", "mingw") and package:config("shared") then
+ elseif os.host() == "windows" and self:is_plat("windows", "mingw") and self:config("shared") then
-- bin/*.dll for windows
envs.PATH = {"bin"}
end
-- add LD_LIBRARY_PATH to load *.so directory
- if os.host() ~= "windows" and self:is_plat(os.host()) and self:is_arch(os.arch()) and package:config("shared") then
+ if os.host() ~= "windows" and self:is_plat(os.host()) and self:is_arch(os.arch()) and self:config("shared") then
envs.LD_LIBRARY_PATH = {"lib"}
if os.host() == "macosx" then
envs.DYLD_LIBRARY_PATH = {"lib"}