aboutsummaryrefslogtreecommitdiff
path: root/scripts/coreutils.sh
blob: 1df321f4b6eac1be3328db72d4168e1e39a1e38d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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