From 55387212b78ef98bbaae33fb73c41a5ae93b3896 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 9 Feb 2012 10:19:23 +0000 Subject: [PATCH] also apply install_name_tool to .so files when building OSX installer --- makepanda/makepanda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 5f33cf1323..681d4fcb77 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -5788,7 +5788,7 @@ def MakeInstallerOSX(): oscmd("cp -R -P " + GetOutputDir() + "/lib/" + base + " " + libname) # Execute install_name_tool to make them reference an absolute path - if (libname.endswith(".dylib") and not os.path.islink(libname)): + if (libname.endswith(".dylib") or libname.endswith(".so")) and not os.path.islink(libname): oscmd("install_name_tool -id /Developer/Panda3D/lib/%s %s" % (base, libname), True) oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (libname, GetOutputDir()), True) for line in open(GetOutputDir()+"/tmp/otool-libs.txt", "r"):