remove hand-written crt1.s and Scrt1.s files for all archs
[musl.git] / tools / musl-gcc.specs.sh
blob294e24f75503be91364dea17c4d0bdbe161c4210
1 incdir=$1
2 libdir=$2
3 ldso=$3
4 cat <<EOF
5 %rename cpp_options old_cpp_options
7 *cpp_options:
8 -nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
10 *cc1:
11 %(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
13 *link_libgcc:
14 -L$libdir -L .%s
16 *libgcc:
17 libgcc.a%s %:if-exists(libgcc_eh.a%s)
19 *startfile:
20 %{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
22 *endfile:
23 %{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
25 *link:
26 -dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
28 *esp_link:
31 *esp_options:
34 *esp_cpp_options:
37 EOF