mklibs: do not fail on unresolved symbols, but print warnings
[openwrt-10.03/.git] / tools / mklibs / patches / 002-disable_symbol_checks.patch
1 --- a/src/mklibs.py
2 +++ b/src/mklibs.py
3 @@ -429,7 +429,7 @@ while 1:
4          # No progress in last pass. Verify all remaining symbols are weak.
5          for name in unresolved:
6              if not needed_symbols[name].weak:
7 -                raise "Unresolvable symbol %s" % name
8 +                print "WARNING: Unresolvable symbol %s" % name
9          break
10  
11      previous_pass_unresolved = unresolved
12 @@ -467,10 +467,7 @@ while 1:
13  
14      # which symbols are actually used from each lib
15      for name in needed_symbols:
16 -        if not name in symbol_provider:
17 -            if not needed_symbols[name].weak:
18 -                raise "No library provides non-weak %s" % symbol
19 -        else:
20 +        if name in symbol_provider:
21              lib = symbol_provider[name]
22              library_symbols_used[lib].add(library_symbols[lib][name])
23