mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
bb11c68b1e
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 36820
15 lines
626 B
Diff
15 lines
626 B
Diff
--- a/src/mklibs
|
|
+++ b/src/mklibs
|
|
@@ -593,6 +593,11 @@
|
|
extra_post_obj.append(sysroot + libc_extras_dir + "/sofini.o")
|
|
symbols.add(ProvidedSymbol('__dso_handle', None, None, True))
|
|
|
|
+ if soname in ("libc.so.0"):
|
|
+ symbols.add(ProvidedSymbol('__uClibc_init', None, None, True))
|
|
+ symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True))
|
|
+ extra_flags.append("-Wl,-init,__uClibc_init")
|
|
+
|
|
map_file = find_pic_map(library)
|
|
if map_file:
|
|
extra_flags.append("-Wl,--version-script=" + map_file)
|