curl -# https://zlib.net/zlib-1.2.11.tar.gz tar -xf zlib-1.2.11.tar.gz cd zlib-1.2.11 export CFLAGS="$CFLAGS -fPIC" ./configure --prefix="$1" --shared make make DESTDIR="$1" install