busybox:bootstrap (1314B)
1 #!/usr/bin/env pthbs-build 2 #@pragma:nosandbox 3 #@pragma:nopath 4 #+musl-cross-make.935182e555695bf1b9f401d79404e8c598026db9f8b93e0be41d176a782e932a 5 #+gnu-make.162efeebf8811ff0c94b916a634371c2f5804308501b77514191d787bf3a6639 6 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox 7 #@sha256:9ee52091d7a41e7e492d508574573fbebe64155d85a07980128f21105eaad1e2:busybox/.config 8 9 : ${JOBS:=1} 10 mcm=/versions/musl-cross-make.935182e555695bf1b9f401d79404e8c598026db9f8b93e0be41d176a782e932a 11 make=/versions/gnu-make.162efeebf8811ff0c94b916a634371c2f5804308501b77514191d787bf3a6639 12 13 export PATH="$mcm/bin:$make/command:$PATH" 14 export CC="$mcm/bin/x86_64-linux-musl-gcc" 15 export CFLAGS="-D_GNU_SOURCE" 16 export LDFLAGS="-static" 17 18 cd busybox 19 $make/command/make V=1 CROSS_COMPILE=x86_64-linux-musl- LDFLAGS=-static HOSTLDFLAGS=-static \ 20 HOSTCC="$CC -static" CC="$CC -static" HOSTCFLAGS=-D_GNU_SOURCE -j$JOBS 21 22 mkdir -p "$pthbs_destdir/versions/$pthbs_package/command" 23 cp -a busybox "$pthbs_destdir/versions/$pthbs_package/command/" 24 cd "$pthbs_destdir/versions/$pthbs_package" 25 echo false | ./command/busybox --list >/dev/null # test if it works 26 ./command/busybox --list | awk ' 27 { print "./command/busybox\t./command/" $0 } 28 END { print "./command/busybox\t./command/busybox" } 29 ' >.install-links.new 30 mv .install-links.new .install-links