From edbeecba6030a538f76e8845d32226d1a4976b26 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 11 Dec 2022 00:31:35 +0000 Subject: [PATCH] Fix libpng build Signed-off-by: falkTX --- bootstrap-plugins.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-plugins.sh b/bootstrap-plugins.sh index 6cfc40e..9012750 100755 --- a/bootstrap-plugins.sh +++ b/bootstrap-plugins.sh @@ -41,6 +41,9 @@ source setup/versions.sh if [ "${MACOS}" -eq 0 ]; then # fix build 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 download libpng "${LIBPNG_VERSION}" "${LIBPNG_URL}" "tar.xz"