summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/packagenv.lua
diff options
context:
space:
mode:
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)