2016-04-30 03:14:51 +08:00
|
|
|
%rename link nano_link
|
|
|
|
%rename link_gcc_c_sequence nano_link_gcc_c_sequence
|
|
|
|
|
|
|
|
*nano_libc:
|
|
|
|
-lc_nano
|
|
|
|
|
|
|
|
*nano_libgloss:
|
2016-05-07 03:55:49 +08:00
|
|
|
%{specs=nsim.specs:-lnsim} %{specs=nosys.specs:-lnosys}
|
2016-04-30 03:14:51 +08:00
|
|
|
|
|
|
|
*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:
|
2016-05-07 03:55:49 +08:00
|
|
|
%{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}
|
2016-04-30 03:14:51 +08:00
|
|
|
|