Pass -soname to the GNU linker

This commit is contained in:
rdb 2009-11-19 18:48:35 +00:00
parent f165019d2b
commit 02db4e5ae1

View File

@ -836,7 +836,8 @@ def CompileLink(dll, obj, opts):
else: cmd += ' -dynamiclib -install_name ' + os.path.basename(dll)
cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib'
else:
cmd = 'g++ -shared -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib'
cmd = 'g++ -shared -Wl,-soname=' + os.path.basename(dll)
cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib'
for x in obj:
if (GetOrigExt(x) != ".dat"):
base = os.path.basename(x)