logo

bootstrap-initrd

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

pkgconf-lite.sh (524B)


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