mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Append -headerpad_max_install_names to linker command on OSX
This commit is contained in:
parent
966d467ab2
commit
d1b27a33d8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user