1incdir=$1 2libdir=$2 3ldso=$3 4cat <<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: 17libgcc.a%s %:if-exists(libgcc_eh.a%s) 18 19*startfile: 20%{!shared: $libdir/Scrt1.o} $libdir/crti.o crtbeginS.o%s 21 22*endfile: 23crtendS.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 37EOF 38