summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-11 00:50:26 +0800
committerruki <[email protected]>2020-03-10 23:02:36 +0800
commit6bad4b9374bab62afcaaa55f53c5f047e274a286 (patch)
treeb6662a122f750943df0c4bc943a3ee43237dc97a /xmake/modules
parentacca2c3115570e7f3b1ef059413c4dce49c520d1 (diff)
add LD_LIBRARY_PATH for package
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/require/packagenv.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/packagenv.lua b/xmake/modules/private/action/require/packagenv.lua
index 3f21f09ce..f7d8a94df 100644
--- a/xmake/modules/private/action/require/packagenv.lua
+++ b/xmake/modules/private/action/require/packagenv.lua
@@ -33,10 +33,9 @@ function _enter_package(package_name, envs, installdir)
end
-- add the new environments
- oldenvs.PATH = os.getenv("PATH")
for name, values in pairs(envs) do
oldenvs[name] = oldenvs[name] or os.getenv(name)
- if name == "PATH" then
+ if name == "PATH" or name == "LD_LIBRARY_PATH" then
for _, value in ipairs(values) do
if path.is_absolute(value) then
os.addenv(name, value)