Browse Source

makepanda: don't try to link static libs into static library

rdb 7 years ago
parent
commit
99aa598de0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      makepanda/makepanda.py

+ 2 - 0
makepanda/makepanda.py

@@ -1598,6 +1598,8 @@ def CompileLib(lib, obj, opts):
         else:
             cmd = GetAR() + ' cru ' + BracketNameWithQuotes(lib)
         for x in obj:
+            if GetLinkAllStatic() and x.endswith('.a'):
+                continue
             cmd += ' ' + BracketNameWithQuotes(x)
         oscmd(cmd)