Alexey Brodkin 5171b3033a 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>
2021-02-19 19:25:12 +03:00
..
2018-04-29 12:06:54 -07:00
2018-04-07 12:03:17 -07:00
2020-12-04 10:14:53 -06:00
2020-12-04 10:14:53 -06:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2018-04-07 14:39:56 -07:00
2018-04-07 14:39:56 -07:00
2017-04-13 00:07:29 -07:00