X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=tools%2Fmklibs%2Fpatches%2F009-uclibc_libgcc_link.patch;fp=tools%2Fmklibs%2Fpatches%2F009-uclibc_libgcc_link.patch;h=36f20671931bb2c0e42a852d623077e7d8e77e0d;hb=ad45e24bd01eaf47762f05024a86364eb05b8b95;hp=d201821fc6bfa2b3fe8608b81c5e6ec6e20c1b4b;hpb=e6267871dac2b7f2b4265ec5cbd04d482fb59afc;p=openwrt%2Fstaging%2Fstintel.git diff --git a/tools/mklibs/patches/009-uclibc_libgcc_link.patch b/tools/mklibs/patches/009-uclibc_libgcc_link.patch index d201821fc6..36f2067193 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)