2
0

musl-gcc.specs.sh 564 B

12345678910111213141516171819202122232425262728293031323334353637
  1. incdir=$1
  2. libdir=$2
  3. ldso=$3
  4. cat <<EOF
  5. %rename cpp_options old_cpp_options
  6. *cpp_options:
  7. -nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
  8. *cc1:
  9. %(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
  10. *link_libgcc:
  11. -L$libdir -L .%s
  12. *libgcc:
  13. libgcc.a%s %:if-exists(libgcc_eh.a%s)
  14. *startfile:
  15. %{!shared: $libdir/Scrt1.o} $libdir/crti.o crtbeginS.o%s
  16. *endfile:
  17. crtendS.o%s $libdir/crtn.o
  18. *link:
  19. -dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
  20. *esp_link:
  21. *esp_options:
  22. *esp_cpp_options:
  23. EOF