Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/arc/nano.specs
2023-03-06 14:48:14 +01:00

18 lines
557 B
Text

%rename link nano_link
%rename link_gcc_c_sequence nano_link_gcc_c_sequence
*nano_libc:
-lc_nano
*nano_libgloss:
%{specs=nsim.specs:-lnsim} %{specs=nosys.specs:-lnosys}
*link_gcc_c_sequence:
%(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
*link:
%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lstdc++ -lstdc++_nano) %:replace-outfile(-lsupc++ -lsupc++_nano)
*lib:
%{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}