summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2021-02-19 15:44:02 (GMT)
committerAlexey Brodkin <abrodkin@synopsys.com>2021-02-19 16:25:12 (GMT)
commit5171b3033a6dc20bf120256abeb5c732f93077a0 (patch)
tree190203e71f46231bb94ae412856cf5db5bf1856b /.github
parent0e0fd3cf1859bd86d016a5d54c32061fe1059d17 (diff)
newlib-nano: Create symlinks for nano-suffixed libs
If existing board's .specs are used for linking of a user's application, then instead of normally used libs like libc.a & libstdc++.a might be requested their "nano"-suffixed siblings: libc_nano.a, libstdc++_nano etc. That way: ----------------------------->8--------------------------- %rename link_gcc_c_sequence myboard_link_gcc_c_sequence *myboard_libc: %{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano} *link_gcc_c_sequence: %(myboard_link_gcc_c_sequence) --start-group %G %(myboard_libc) --end-group ----------------------------->8--------------------------- Our companion newlib-nano libs are all built optimized for size, so we'd like to use them for linking. But given linker will see "-lc_nano -lstdc++_nano" on its command line non-suffixed libs will be ignored. To solve it we create those "_nano"-suffixed libraries as simple symlinks to existing libs.. Fixes https://github.com/crosstool-ng/crosstool-ng/issues/1458. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions