Browse Source

Workaround to allow building the rtdist on Mac 10.11, which removes DYLD_LIBRARY_PATH

rdb 10 years ago
parent
commit
5ba93acf5c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      makepanda/makepandacore.py

+ 4 - 0
makepanda/makepandacore.py

@@ -2481,6 +2481,10 @@ def SetupBuildEnvironment(compiler):
             dyldpath.insert(0, os.path.join(builtdir, 'lib'))
             os.environ["DYLD_LIBRARY_PATH"] = os.pathsep.join(dyldpath)
 
+            # OS X 10.11 removed DYLD_LIBRARY_PATH, but we still need to pass
+            # on our lib directory to ppackage, so add it to PATH instead.
+            os.environ["PATH"] = os.path.join(builtdir, 'lib') + ':' + os.environ.get("PATH", "")
+
         # Workaround around compile issue on PCBSD
         if (os.path.exists("/usr/PCBSD")):
             os.environ["LD_LIBRARY_PATH"] += os.pathsep + "/usr/PCBSD/local/lib"