diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:13:39 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:13:39 -0400 |
| commit | db54ef567f4c724299ad1830d574052170247e04 (patch) | |
| tree | 23cb53b4d9eadf99cd014c31e926fe6d1c4cc2c2 /scripts/zlib.sh | |
| parent | d0bd2d53b1186300abd32822276e992d1359a92a (diff) | |
| parent | 38de9074ff1effefa08bfc71471a97cd0658c10c (diff) | |
| download | min-db54ef567f4c724299ad1830d574052170247e04.tar.gz min-db54ef567f4c724299ad1830d574052170247e04.tar.xz | |
Merged in changes from my desktop
Diffstat (limited to 'scripts/zlib.sh')
| -rw-r--r-- | scripts/zlib.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/zlib.sh b/scripts/zlib.sh new file mode 100644 index 0000000..070076f --- /dev/null +++ b/scripts/zlib.sh @@ -0,0 +1,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 + |
