Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More fixes to libpng build
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 11, 2022
1 parent 1de7448 commit a269cc5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bootstrap-plugins.sh
Expand Up @@ -38,12 +38,17 @@ source setup/versions.sh
# ---------------------------------------------------------------------------------------------------------------------
# libpng

LIBPNG_EXTRAFLAGS=""

# bypass broken zlib configure tests
if [ "${MACOS}" -eq 0 ]; then
# fix build
LIBPNG_EXTRAFLAGS+=" ac_cv_lib_z_zlibVersion=yes"
export EXTRA_CPPFLAGS="-I${PAWPAW_PREFIX}/include"
if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then
export EXTRA_CPPFLAGS+=" -fno-lto"
fi
fi

if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
# FIXME
LIBPNG_EXTRAFLAGS+=" --disable-hardware-optimizations"
fi

download libpng "${LIBPNG_VERSION}" "${LIBPNG_URL}" "tar.xz"
Expand Down

0 comments on commit a269cc5

Please sign in to comment.