source: trunk/libs/newlib/src/libgloss/riscv/nano.specs @ 474

Last change on this file since 474 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 599 bytes
RevLine 
[444]1%rename link                nano_link
2%rename link_gcc_c_sequence                nano_link_gcc_c_sequence
3%rename cpp             nano_cpp
4
5*cpp:
6-isystem =/include/newlib-nano %(nano_cpp)
7
8*nano_libc:
9-lc_nano
10
11*nano_libgloss:
12%{specs=nosys.specs:-lnosys} %{!specs=nosys.specs:-lgloss_nano}
13
14*link_gcc_c_sequence:
15%(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
16
17*link:
18%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
19
20*lib:
21%{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}
22
23# ??? Maybe put --gc-sections option in here?
Note: See TracBrowser for help on using the repository browser.