mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-13 04:29:09 +08:00
An example of building an application: $ arc-elf32-gcc -mcpu=em -specs=iotdk.specs main.c -o main Signed-off-by: Vladimir Isaev <vvisaev@gmail.com> Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
19 lines
424 B
Plaintext
19 lines
424 B
Plaintext
%rename link iotdk_link
|
|
%rename link_gcc_c_sequence iotdk_link_gcc_c_sequence
|
|
%rename startfile iotdk_startfile
|
|
|
|
*link:
|
|
%(iotdk_link) -T iotdk.ld%s
|
|
|
|
*iotdk_libgloss:
|
|
-luart_8250 -liotdk_uart
|
|
|
|
*iotdk_libc:
|
|
%{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano}
|
|
|
|
*link_gcc_c_sequence:
|
|
%(iotdk_link_gcc_c_sequence) --start-group %G %(iotdk_libc) %(iotdk_libgloss) --end-group
|
|
|
|
*startfile:
|
|
%(iotdk_startfile) arc-main-helper%O%s
|