e76515085c4bb7d5efcd8cbeaa8a88e1084c1919
[openwrt.git] / tools / mklibs / patches / 007-uclibc_init.patch
1 --- a/src/mklibs.py
2 +++ b/src/mklibs.py
3 @@ -571,6 +571,11 @@ while 1:
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)
This page took 0.038256 seconds and 3 git commands to generate.