Trying again to fix lib bug

This commit is contained in:
Josh Yelon 2007-11-19 18:18:38 +00:00
parent fdf788e2af
commit 23c0fbe098
1 changed files with 3 additions and 2 deletions

View File

@ -577,8 +577,9 @@ def CompileLink(dll, obj, opts):
else: cmd = 'g++ -shared -o ' + dll + ' -Lbuilt/lib -L/usr/X11R6/lib'
for x in obj:
if (GetOrigExt(x) != ".dat"):
if (x[-3:]==".so") and (x[:3]=="lib"):
cmd = cmd + ' -l' + os.path.basename(x)[3:-3]
base = os.path.basename(x)
if (base[-3:]==".so") and (base[:3]=="lib"):
cmd = cmd + ' -l' + base[3:-3]
else:
cmd = cmd + ' ' + x
#if (PkgSelected(opts,"FMOD")): cmd = cmd + ' -L' + THIRDPARTYLIBS + 'fmod/lib -lfmod'