blob: a669b11c9fdd0faf42f61cb90693a7cc61e0fa83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
. ./.vars
VERSION=3.3.2
APP_NAME="libarchive"
BUILD_DIR="${build_dir}/$APP_NAME-$VERSION"
if ! [ -d "$BUILD_DIR" ] ; then
cd "$build_dir"
tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tar.gz
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"
./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
|