blob: 070076f088cb3fd0602bee11a0f5700be6bf2c56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
. ./.vars
export DESTDIR=$prefix
VERSION=1.2.11
APP_NAME="zlib"
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=musl-gcc
export CFLAGS="-static"
export DESTDIR="$prefix"
export LDFLAGS="-static"
./configure --prefix=/usr --static
make -j$(numproc)
make install
|