1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 22:52:28 +02:00

[tools] mklibs: import missing symbol workaround from Freetz project (#7590)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24984 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-01-14 10:49:41 +00:00
parent f742b2d746
commit 9e2306be1f

View File

@ -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)