mklibs: update to version 0.1.43
[openwrt/staging/nbd.git] / tools / mklibs / patches / 006-fix-early-abort.patch
diff --git a/tools/mklibs/patches/006-fix-early-abort.patch b/tools/mklibs/patches/006-fix-early-abort.patch
new file mode 100644 (file)
index 0000000..a72a1d4
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/src/mklibs
++++ b/src/mklibs
+@@ -526,10 +526,10 @@ while 1:
+     debug (DEBUG_NORMAL, `len(needed_symbols)`, "symbols,",
+            `num_unresolved`, "unresolved")
+-    if num_unresolved == 0:
++    if num_unresolved == 0 and passnr > 2:
+         break
+-    if unresolved == previous_pass_unresolved:
++    if unresolved == previous_pass_unresolved and passnr > 2:
+         # No progress in last pass. Verify all remaining symbols are weak.
+         for name in unresolved:
+             if not needed_symbols[name].weak: