summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/packagenv.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-21 20:23:52 +0800
committerruki <[email protected]>2020-11-21 20:23:52 +0800
commit287d1e2ca2bd376d488f91d58dd36f45d2a3cf6a (patch)
treea7917cb9ec1f393d39512bc2e33731093d08e3eb /xmake/modules/private/action/require/packagenv.lua
parentb10a4d83559dd0598c2a2263addb470160565f16 (diff)
add DYLD_LIBRARY_PATH
Diffstat (limited to 'xmake/modules/private/action/require/packagenv.lua')
-rw-r--r--xmake/modules/private/action/require/packagenv.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/packagenv.lua b/xmake/modules/private/action/require/packagenv.lua
index 44382e15c..6eb4862b9 100644
--- a/xmake/modules/private/action/require/packagenv.lua
+++ b/xmake/modules/private/action/require/packagenv.lua
@@ -35,7 +35,7 @@ function _enter_package(package_name, envs, installdir)
-- add the new environments
for name, values in pairs(envs) do
oldenvs[name] = oldenvs[name] or os.getenv(name)
- if name == "PATH" or name == "LD_LIBRARY_PATH" then
+ if name == "PATH" or name == "LD_LIBRARY_PATH" or name == "DYLD_LIBRARY_PATH" then
for _, value in ipairs(values) do
if path.is_absolute(value) then
os.addenv(name, value)