blob: 2215fd1598888bcf6800aa3873e037991952b29d (
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=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="gcc"
export CFLAGS="-static"
export DESTDIR="$prefix"
export LDFLAGS="-static"
./configure \
--prefix=/usr \
--static
make -j$(numproc)
make install
|