| Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 1 | incdir=$1 |
| 2 | libdir=$2 |
| 3 | ldso=$3 |
| 4 | cat <<EOF |
| 5 | %rename cpp_options old_cpp_options |
| 6 | |
| 7 | *cpp_options: |
| 8 | -nostdinc -isystem $incdir -isystem include%s %(old_cpp_options) |
| 9 | |
| 10 | *cc1: |
| 11 | %(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s |
| 12 | |
| 13 | *link_libgcc: |
| 14 | -L$libdir -L .%s |
| 15 | |
| 16 | *libgcc: |
| 17 | libgcc.a%s %:if-exists(libgcc_eh.a%s) |
| 18 | |
| 19 | *startfile: |
| 20 | %{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} |
| 21 | |
| 22 | *endfile: |
| 23 | %{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o |
| 24 | |
| 25 | *link: |
| 26 | -dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} |
| 27 | |
| 28 | *esp_link: |
| 29 | |
| 30 | |
| 31 | *esp_options: |
| 32 | |
| 33 | |
| 34 | *esp_cpp_options: |
| 35 | |
| 36 | |
| 37 | EOF |