Index: zlib/build.sh ================================================================== --- zlib/build.sh +++ zlib/build.sh @@ -41,10 +41,16 @@ cd "${BUILDDIR}" || exit 1 # ZLIB Expects AR to contain options AR="${AR:-ar} rcu" export AR + + # If we are building for KitDLL, compile with '-fPIC' + if [ "${KITTARGET}" = "kitdll" ]; then + CFLAGS="${CFLAGS} -fPIC" + export CFLAGS + fi # We don't pass CONFIGUREEXTRA here, since this isn't a GNU autoconf # script and will puke echo "Running: ./configure --prefix=\"${INSTDIR}\"" ./configure --prefix="${INSTDIR}"