diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-22 18:26:18 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-22 18:26:18 -0400 |
| commit | 73692b5ba9f28b75e226152044b18409a7df7685 (patch) | |
| tree | 06e8dbb42994ee65c8c815de3c23e5d2a910716d /scripts/setup_musl_cross.sh | |
| parent | b3810b12552a937dcb6486ccf775a0bd9094db23 (diff) | |
| download | min-73692b5ba9f28b75e226152044b18409a7df7685.tar.gz min-73692b5ba9f28b75e226152044b18409a7df7685.tar.xz | |
Addex XZ as well as sources and a working "tar" for the system.
( I need to rename it to cpio )
Diffstat (limited to 'scripts/setup_musl_cross.sh')
| -rw-r--r-- | scripts/setup_musl_cross.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/setup_musl_cross.sh b/scripts/setup_musl_cross.sh new file mode 100644 index 0000000..6ae5dd6 --- /dev/null +++ b/scripts/setup_musl_cross.sh @@ -0,0 +1,27 @@ +#!/bin/sh +. ./.vars +# VERSION=3.3.2 +APP_NAME="musl-cross-make" +BUILD_DIR="${build_dir}/$APP_NAME" +if ! [ -d "$BUILD_DIR" ] ; then + cd "$build_dir" + git clone ${dist_dir}/$APP_NAME +fi +cd "$BUILD_DIR" +export CC=$BUILD_TGT-gcc +export CFLAGS="-I$prefix/usr/include -static" +export DESTDIR=$prefix +export LDFLAGS="-L$prefix/usr/lib/ -static" +rm config.log || echo "" +make clean || echo "" +./configure \ + --host=$BUILD_TGT \ + --prefix=/usr \ + --without-xml2 \ + --enable-bsdtar=static \ + --enable-bsdcpio=static \ + --enable-bsdcat=static \ + --without-openssl \ + --with-sysroot=$prefix +make -j$(nproc) +make install |
