summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-29 22:07:11 +0800
committerGitHub <[email protected]>2023-01-29 22:07:11 +0800
commit0e533c28f85bf23b57a08709c9a845efad16ff45 (patch)
tree4994c6468ff3e8769461f15f474047a0a861d5ee
parentf87eac79c27faacbd27ac9fb50ce704e1f6b1ec5 (diff)
parenta9ffdd5fca71e90607ecd38195dde55af7366df9 (diff)
Merge pull request #3319 from SirLynix/patch-12
Fix mixup between DYLD_LIBRARY_PATH and LD_LIBRARY_PATH
-rw-r--r--xmake/modules/private/xrepo/action/env.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index 63ddfae63..f39eacb4d 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -293,9 +293,9 @@ function _target_addenvs(envs)
if is_host("windows") then
_addenvs(envs, "PATH", target:targetdir())
elseif is_host("macosx") then
- _addenvs(envs, "LD_LIBRARY_PATH", target:targetdir())
- else
_addenvs(envs, "DYLD_LIBRARY_PATH", target:targetdir())
+ else
+ _addenvs(envs, "LD_LIBRARY_PATH", target:targetdir())
end
end
-- add run environments