Browse Source

Preserve symlinks when copying the libraries, on OSX

rdb 16 years ago
parent
commit
7f4bb9e9c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -4701,7 +4701,7 @@ def MakeInstallerOSX():
         oscmd("cp -R %s/plugins           dstroot/base/Developer/Panda3D/plugins" % GetOutputDir())
         oscmd("cp -R %s/plugins           dstroot/base/Developer/Panda3D/plugins" % GetOutputDir())
     for base in os.listdir(GetOutputDir()+"/lib"):
     for base in os.listdir(GetOutputDir()+"/lib"):
         if (not base.endswith(".a")):
         if (not base.endswith(".a")):
-            oscmd("cp "+GetOutputDir()+"/lib/"+base+" dstroot/base/Developer/Panda3D/lib/"+base)
+            oscmd("cp -d "+GetOutputDir()+"/lib/"+base+" dstroot/base/Developer/Panda3D/lib/"+base)
     
     
     # Scripts to configure this version of Panda3D (in environment.plist)
     # Scripts to configure this version of Panda3D (in environment.plist)
     oscmd("mkdir -p dstroot/scripts/base/")
     oscmd("mkdir -p dstroot/scripts/base/")