2775493b092b171ecd73f77bc6c985b7b76d7646
[openwrt.git] / tools / mklibs / patches / 008-gc_sections.patch
1 --- a/src/mklibs.py
2 +++ b/src/mklibs.py
3 @@ -583,7 +583,7 @@ while 1:
4 # compile in only used symbols
5 cmd = []
6 cmd.extend(gcc_options)
7 - cmd.append("-nostdlib -nostartfiles -shared -Wl,-soname=" + soname)
8 + cmd.append("-nostdlib -nostartfiles -shared -Wl,--gc-sections -Wl,-soname=" + soname)
9 cmd.extend(["-u%s" % a.linker_name() for a in symbols])
10 cmd.extend(["-o", dest_path + "/" + so_file_name + "-so"])
11 cmd.extend(extra_pre_obj)
This page took 0.045918 seconds and 3 git commands to generate.