From 4b1cd7ad1e1463a45b444d066b49574a9b6ad04a Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 22 Apr 2018 12:33:52 -0400 Subject: Sweeping changes, switching to musl-cross-make Updated busybox-config to reflect the toolchain change Nginx and Openssh build and are now apart of the system. Runit is included, still need to install configuration files --- scripts/coreutils.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/coreutils.sh (limited to 'scripts/coreutils.sh') diff --git a/scripts/coreutils.sh b/scripts/coreutils.sh new file mode 100644 index 0000000..1df321f --- /dev/null +++ b/scripts/coreutils.sh @@ -0,0 +1,21 @@ +#!/bin/sh +. ./.vars +export DESTDIR=$prefix +VERSION=8.29 +APP_NAME="coreutils" +BUILD_DIR="${build_dir}/$APP_NAME-$VERSION" +if ! [ -d "$BUILD_DIR" ] ; then + cd "$build_dir" + tar xfJv ${dist_dir}/$APP_NAME-$VERSION.tar.xz +fi +cd "$BUILD_DIR" +# export CC=musl-gcc +# export CFLAGS="-static -I$prefix/usr/include" +# export LDFLAGS="-static -L$prefix/usr/lib" +export DESTDIR="$prefix" +./configure --prefix=/ \ + --with-sysroot="$prefix" \ + --with-lib-path="$prefix/lib" \ + --disable-werror +make -j$(nproc) +make install -- cgit v1.2.3