Browse Source

* set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on Darwin

git-svn-id: trunk@29586 -
Jonas Maebe 10 years ago
parent
commit
ff25f5c923
1 changed files with 8 additions and 2 deletions
  1. 8 2
      tests/utils/dotest.pp

+ 8 - 2
tests/utils/dotest.pp

@@ -1405,9 +1405,15 @@ begin
       if Config.NeedLibrary then
         begin
           if RemoteShellNeedsExport then
-            execcmd:=execcmd+' LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH;'
+            if CompilerTarget='darwin' then
+              execcmd:=execcmd+' DYLD_LIBRARY_PATH=.; export DYLD_LIBRARY_PATH;'
+            else
+              execcmd:=execcmd+' LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH;'
           else
-            execcmd:=execcmd+' setenv LD_LIBRARY_PATH=.; ';
+            if CompilerTarget='darwin' then
+              execcmd:=execcmd+' setenv DYLD_LIBRARY_PATH=.; '
+            else
+              execcmd:=execcmd+' setenv LD_LIBRARY_PATH=.; '
         end;