X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f49117a33b85a922f01a2f5778b3a893aec9cd01..e12cd3d5ae4c09dbf49d20c29cff8f2183946c73:/tools/mklibs/patches/009-uclibc_libgcc_link.patch diff --git a/tools/mklibs/patches/009-uclibc_libgcc_link.patch b/tools/mklibs/patches/009-uclibc_libgcc_link.patch index d201821fc..36f206719 100644 --- a/tools/mklibs/patches/009-uclibc_libgcc_link.patch +++ b/tools/mklibs/patches/009-uclibc_libgcc_link.patch @@ -22,16 +22,15 @@ symbols.update(library_symbols_used[library]) -@@ -590,9 +588,11 @@ while 1: +@@ -590,9 +588,10 @@ while 1: cmd.append(pic_file) cmd.extend(extra_post_obj) cmd.extend(extra_flags) - cmd.append("-lgcc") cmd.extend(["-L%s" % a for a in [dest_path] + [sysroot + b for b in lib_path if sysroot == "" or b not in ("/" + libdir + "/", "/usr/" + libdir + "/")]]) - cmd.append(library_depends_gcc_libnames(so_file, soname)) -+ if soname != "libgcc_s.so.1" and soname != "libc.so.0": -+ cmd.append(library_depends_gcc_libnames(so_file, soname)) + if soname != "libgcc_s.so.1": ++ cmd.append(library_depends_gcc_libnames(so_file, soname)) + cmd.append(libgcc_link) command(target + "gcc", *cmd)