소스 검색

* set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on Darwin

git-svn-id: trunk@29586 -
Jonas Maebe 10 년 전
부모
커밋
ff25f5c923
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  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;