From d1b27a33d87bf110021746e3fac868fe8fd3bbc5 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 23 Jun 2010 09:29:03 +0000 Subject: [PATCH] Append -headerpad_max_install_names to linker command on OSX --- makepanda/makepanda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index c905ef7c2a..ea8e571543 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -926,14 +926,14 @@ def CompileLink(dll, obj, opts): if (GetOrigExt(dll)==".exe"): cmd = 'g++ -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib' else: if (sys.platform == "darwin"): - cmd = 'g++ -undefined dynamic_lookup' + cmd = 'g++ -undefined dynamic_lookup -headerpad_max_install_names' if ("BUNDLE" in opts): cmd += ' -bundle ' else: cmd += ' -dynamiclib -install_name ' + os.path.basename(dll) cmd += ' -compatibility_version ' + MAJOR_VERSION + ' -current_version ' + VERSION cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib' else: - cmd = 'g++ -shared' + cmd = 'g++ -shared -headerpad_max_install_names' if ("MODULE" not in opts): cmd += " -Wl,-soname=" + os.path.basename(dll) cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib' for x in obj: