Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [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: |
Rich Felker | c161356 | 2013-06-07 10:13:07 -0400 | [diff] [blame] | 8 | -nostdinc -isystem $incdir -isystem include%s %(old_cpp_options) |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 9 | |
| 10 | *cc1: |
Rich Felker | fd1d7be | 2013-06-07 10:18:07 -0400 | [diff] [blame] | 11 | %(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 12 | |
| 13 | *link_libgcc: |
Rich Felker | 5d26d5d | 2012-07-23 23:29:03 -0400 | [diff] [blame] | 14 | -L$libdir -L .%s |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 15 | |
| 16 | *libgcc: |
| 17 | libgcc.a%s %:if-exists(libgcc_eh.a%s) |
| 18 | |
| 19 | *startfile: |
Rich Felker | ed67172 | 2012-05-30 21:19:32 -0400 | [diff] [blame] | 20 | %{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 21 | |
| 22 | *endfile: |
| 23 | %{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o |
| 24 | |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 25 | *link: |
Rich Felker | 6e0ad22 | 2012-06-06 15:48:06 -0400 | [diff] [blame] | 26 | -dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} |
Rich Felker | 58f430c | 2012-04-22 14:32:49 -0400 | [diff] [blame] | 27 | |
| 28 | *esp_link: |
| 29 | |
| 30 | |
| 31 | *esp_options: |
| 32 | |
| 33 | |
| 34 | *esp_cpp_options: |
| 35 | |
| 36 | |
| 37 | EOF |