From: Jo-Philipp Wich Date: Fri, 14 Jan 2011 10:49:41 +0000 (+0000) Subject: mklibs: import missing symbol workaround from Freetz project (#7590) X-Git-Tag: reboot~17877 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=531e5e5386e6ad2a9358839b566381ac3f7ea05c;p=openwrt%2Fstaging%2Fchunkeey.git mklibs: import missing symbol workaround from Freetz project (#7590) SVN-Revision: 24984 --- diff --git a/tools/mklibs/patches/009-uclibc_libgcc_link.patch b/tools/mklibs/patches/009-uclibc_libgcc_link.patch index 2312d6a2c5..d5e94068d3 100644 --- a/tools/mklibs/patches/009-uclibc_libgcc_link.patch +++ b/tools/mklibs/patches/009-uclibc_libgcc_link.patch @@ -8,15 +8,18 @@ symbols.update(library_symbols_used[library]) -@@ -575,6 +576,7 @@ while 1: +@@ -575,6 +576,10 @@ while 1: symbols.add(ProvidedSymbol('__uClibc_init', None, None, True)) symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True)) extra_flags.append("-Wl,-init,__uClibc_init") ++ libgcc_link = "-lgcc_s_pic" ++ ++ if soname in ("libm.so.0"): + libgcc_link = "-lgcc_s_pic" map_file = find_pic_map(library) if map_file: -@@ -590,7 +592,7 @@ while 1: +@@ -590,7 +595,7 @@ while 1: cmd.append(pic_file) cmd.extend(extra_post_obj) cmd.extend(extra_flags)