logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/
commit: b304bfa536d0447c54f4799f8bcfd0dcc2db9183
parent 7039bd7e8d19807352300d9b04a176c92e1c9f66
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 25 Dec 2024 06:09:52 +0100

extras/pkgconf.sh: build pkgconf-lite to avoid autotools

Diffstat:

Mextras/pkgconf.sh25++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/extras/pkgconf.sh b/extras/pkgconf.sh @@ -11,11 +11,26 @@ cd ./pkgconf-*/ export LD="tcc" export MAKE="pdpmake" -./configure --prefix=/usr --disable-nls --disable-dependency-tracking -$MAKE clean -$MAKE ARFLAGS='-r' -$MAKE install -ln -s `command -v pkgconf` /usr/bin/pkg-config + +export CFLAGS="$CFLAGS -I. -DHAVE_DECL_STRLCPY -DHAVE_DECL_STRLCAT -DHAVE_DECL_STRNDUP" +export SYSTEM_LIBDIR=/usr/lib +export SYSTEM_INCLUDEDIR=/usr/include +export PKG_DEFAULT_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig + +ed Makefile.lite <<'EOF' +s;CFLAGS =; CFLAGS +=; +/^STRIP =/a +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +. +w Makefile +q +EOF + +$MAKE STRIP=true + +install -m755 pkgconf-lite /usr/bin/pkg-config cd .. rm -r ./pkgconf-*/