mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mklibs: import missing symbol workaround from Freetz project (#7590)
SVN-Revision: 24984
This commit is contained in:
parent
0b98f1f64f
commit
531e5e5386
@ -8,15 +8,18 @@
|
|||||||
|
|
||||||
symbols.update(library_symbols_used[library])
|
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_init', None, None, True))
|
||||||
symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True))
|
symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True))
|
||||||
extra_flags.append("-Wl,-init,__uClibc_init")
|
extra_flags.append("-Wl,-init,__uClibc_init")
|
||||||
|
+ libgcc_link = "-lgcc_s_pic"
|
||||||
|
+
|
||||||
|
+ if soname in ("libm.so.0"):
|
||||||
+ libgcc_link = "-lgcc_s_pic"
|
+ libgcc_link = "-lgcc_s_pic"
|
||||||
|
|
||||||
map_file = find_pic_map(library)
|
map_file = find_pic_map(library)
|
||||||
if map_file:
|
if map_file:
|
||||||
@@ -590,7 +592,7 @@ while 1:
|
@@ -590,7 +595,7 @@ while 1:
|
||||||
cmd.append(pic_file)
|
cmd.append(pic_file)
|
||||||
cmd.extend(extra_post_obj)
|
cmd.extend(extra_post_obj)
|
||||||
cmd.extend(extra_flags)
|
cmd.extend(extra_flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user