mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
544 B
40 lines
544 B
|
14 years ago
|
incdir=$1
|
||
|
|
libdir=$2
|
||
|
|
ldso=$3
|
||
|
|
cat <<EOF
|
||
|
|
%rename cpp_options old_cpp_options
|
||
|
|
|
||
|
|
*cpp_options:
|
||
|
|
-nostdinc -isystem $incdir %(old_cpp_options)
|
||
|
|
|
||
|
|
*cc1:
|
||
|
|
%(cc1_cpu) -nostdinc -isystem $incdir
|
||
|
|
|
||
|
|
*link_libgcc:
|
||
|
|
-L$libdir
|
||
|
|
|
||
|
|
*libgcc:
|
||
|
|
libgcc.a%s %:if-exists(libgcc_eh.a%s)
|
||
|
|
|
||
|
|
*startfile:
|
||
|
|
%{!shared: $libdir/crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
||
|
|
|
||
|
|
*endfile:
|
||
|
|
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
||
|
|
|
||
|
|
%rename link old_link
|
||
|
|
|
||
|
|
*link:
|
||
|
|
%(old_link) -dynamic-linker $ldso -nostdlib
|
||
|
|
|
||
|
|
*esp_link:
|
||
|
|
|
||
|
|
|
||
|
|
*esp_options:
|
||
|
|
|
||
|
|
|
||
|
|
*esp_cpp_options:
|
||
|
|
|
||
|
|
|
||
|
|
EOF
|