logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pass3.sh (701B)


  1. # SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. src_prepare() {
  5. default
  6. # tcc does not support complex types
  7. rm -rf src/complex
  8. }
  9. src_configure() {
  10. CC=tcc ./configure \
  11. --host=i386 \
  12. --disable-shared \
  13. --prefix="${PREFIX}" \
  14. --libdir="${LIBDIR}" \
  15. --includedir="${PREFIX}/include"
  16. # configure script creates this file
  17. if test -f /dev/null; then
  18. rm /dev/null
  19. fi
  20. }
  21. src_compile() {
  22. make "${MAKEJOBS}" PREFIX="${PREFIX}" CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<'
  23. }
  24. src_install() {
  25. make PREFIX="${PREFIX}" DESTDIR="${DESTDIR}" install
  26. }