logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/

pkgconf.sh (574B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. tar xof /distfiles/pkgconf-*.tar.gz
  8. cd ./pkgconf-*/
  9. export LD="tcc"
  10. export MAKE="pdpmake"
  11. export CFLAGS="$CFLAGS -I. -DHAVE_DECL_STRLCPY -DHAVE_DECL_STRLCAT -DHAVE_DECL_STRNDUP"
  12. export SYSTEM_LIBDIR=/usr/lib
  13. export SYSTEM_INCLUDEDIR=/usr/include
  14. export PKG_DEFAULT_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
  15. ed Makefile.lite <<'EOF'
  16. s;CFLAGS =; CFLAGS +=;
  17. /^STRIP =/a
  18. .c.o:
  19. $(CC) $(CFLAGS) -c -o $@ $<
  20. .
  21. w Makefile
  22. q
  23. EOF
  24. $MAKE STRIP=true
  25. install -m755 pkgconf-lite /usr/bin/pkg-config
  26. cd ..
  27. rm -r ./pkgconf-*/