Browse Source

Trying again to fix lib bug

Josh Yelon 18 years ago
parent
commit
23c0fbe098
1 changed files with 3 additions and 2 deletions
  1. 3 2
      doc/makepanda/makepanda.py

+ 3 - 2
doc/makepanda/makepanda.py

@@ -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'