blob: 294e24f75503be91364dea17c4d0bdbe161c4210 [file] [log] [blame]
Rich Felker58f430c2012-04-22 14:32:49 -04001incdir=$1
2libdir=$2
3ldso=$3
4cat <<EOF
5%rename cpp_options old_cpp_options
6
7*cpp_options:
Rich Felkerc1613562013-06-07 10:13:07 -04008-nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
Rich Felker58f430c2012-04-22 14:32:49 -04009
10*cc1:
Rich Felkerfd1d7be2013-06-07 10:18:07 -040011%(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
Rich Felker58f430c2012-04-22 14:32:49 -040012
13*link_libgcc:
Rich Felker5d26d5d2012-07-23 23:29:03 -040014-L$libdir -L .%s
Rich Felker58f430c2012-04-22 14:32:49 -040015
16*libgcc:
17libgcc.a%s %:if-exists(libgcc_eh.a%s)
18
19*startfile:
Rich Felkered671722012-05-30 21:19:32 -040020%{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
Rich Felker58f430c2012-04-22 14:32:49 -040021
22*endfile:
23%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
24
Rich Felker58f430c2012-04-22 14:32:49 -040025*link:
Rich Felker6e0ad222012-06-06 15:48:06 -040026-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
Rich Felker58f430c2012-04-22 14:32:49 -040027
28*esp_link:
29
30
31*esp_options:
32
33
34*esp_cpp_options:
35
36
37EOF