Fix py2app "New Mach-O header is too large" error

This commit is contained in:
Andrew Murray 2023-07-08 16:25:44 +10:00
parent 55de09ae95
commit ac0a8513d0

View File

@ -93,6 +93,9 @@ function pre_build {
ORIGINAL_CFLAGS=$CFLAGS ORIGINAL_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -O3 -DNDEBUG" CFLAGS="$CFLAGS -O3 -DNDEBUG"
if [[ -n "$IS_MACOS" ]]; then
CFLAGS="$CFLAGS -Wl,-headerpad_max_install_names"
fi
build_libwebp build_libwebp
CFLAGS=$ORIGINAL_CFLAGS CFLAGS=$ORIGINAL_CFLAGS