logo

live-bootstrap

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

pass1.sh (665B)


  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. # Configure fails without this
  9. mkdir -p /dev
  10. }
  11. src_configure() {
  12. CC=tcc ./configure \
  13. --host=i386 \
  14. --disable-shared \
  15. --prefix="${PREFIX}" \
  16. --libdir="${LIBDIR}" \
  17. --includedir="${PREFIX}/include/"
  18. # configure script creates this file
  19. if test -f /dev/null; then
  20. rm /dev/null
  21. fi
  22. }
  23. src_compile() {
  24. make "${MAKEJOBS}" CROSS_COMPILE= AR="tcc -ar" RANLIB=true CFLAGS="-DSYSCALL_NO_TLS"
  25. }