[tools] mklibs: upgrade to 0.1.37
[openwrt/svn-archive/archive.git] / tools / mklibs / patches / 006-uclibc_init.patch
1 --- a/src/mklibs
2 +++ b/src/mklibs
3 @@ -593,6 +593,11 @@
4 extra_post_obj.append(sysroot + libc_extras_dir + "/sofini.o")
5 symbols.add(ProvidedSymbol('__dso_handle', None, None, True))
6
7 + if soname in ("libc.so.0"):
8 + symbols.add(ProvidedSymbol('__uClibc_init', None, None, True))
9 + symbols.add(ProvidedSymbol('__uClibc_fini', None, None, True))
10 + extra_flags.append("-Wl,-init,__uClibc_init")
11 +
12 map_file = find_pic_map(library)
13 if map_file:
14 extra_flags.append("-Wl,--version-script=" + map_file)