#!/bin/sh
. ../build_config.sh

rm -rf tmp
mkdir tmp
cd tmp

echo "Building zlib $ZLIB_VERSION"

curl -SLO https://zlib.net/$ZLIB_VERSION.tar.gz
tar -xf $ZLIB_VERSION.tar.gz
cd $ZLIB_VERSION/


CPPFLAGS=-fPIC ./configure \
    --prefix=$PREFIX \
    --static
make
make install

cd ../..
rm -r tmp


#!/bin/sh
. ../build_config.sh

rm -rf tmp
mkdir tmp
cd tmp

echo "Building zlib $ZLIB_VERSION"

curl -SLO https://zlib.net/$ZLIB_VERSION.tar.gz
tar -xf $ZLIB_VERSION.tar.gz
cd $ZLIB_VERSION/


CFLAGS=-fPIC ./configure \
    --prefix=$PREFIX \
    --static
make
make install

cd ../..
rm -r tmp


Fix -fPIC flag for zlib
Fix -fPIC flag for zlib
