#!/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