2012-04-22 14:32:49 -04:00
|
|
|
incdir=$1
|
|
|
|
libdir=$2
|
|
|
|
ldso=$3
|
|
|
|
cat <<EOF
|
|
|
|
%rename cpp_options old_cpp_options
|
|
|
|
|
|
|
|
*cpp_options:
|
2013-06-07 10:13:07 -04:00
|
|
|
-nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
|
2012-04-22 14:32:49 -04:00
|
|
|
|
|
|
|
*cc1:
|
2013-06-07 10:18:07 -04:00
|
|
|
%(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
|
2012-04-22 14:32:49 -04:00
|
|
|
|
|
|
|
*link_libgcc:
|
2012-07-23 23:29:03 -04:00
|
|
|
-L$libdir -L .%s
|
2012-04-22 14:32:49 -04:00
|
|
|
|
|
|
|
*libgcc:
|
|
|
|
libgcc.a%s %:if-exists(libgcc_eh.a%s)
|
|
|
|
|
|
|
|
*startfile:
|
2012-05-30 21:19:32 -04:00
|
|
|
%{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
2012-04-22 14:32:49 -04:00
|
|
|
|
|
|
|
*endfile:
|
|
|
|
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
|
|
|
|
|
|
|
*link:
|
2012-06-06 15:48:06 -04:00
|
|
|
-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
|
2012-04-22 14:32:49 -04:00
|
|
|
|
|
|
|
*esp_link:
|
|
|
|
|
|
|
|
|
|
|
|
*esp_options:
|
|
|
|
|
|
|
|
|
|
|
|
*esp_cpp_options:
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|