Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 535b437

Browse files
authored
Merge pull request #394 from radarhere/py2app_libwebp
Fix py2app "New Mach-O header is too large" error
2 parents 55de09a + ac0a851 commit 535b437

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ function pre_build {
9393

9494
ORIGINAL_CFLAGS=$CFLAGS
9595
CFLAGS="$CFLAGS -O3 -DNDEBUG"
96+
if [[ -n "$IS_MACOS" ]]; then
97+
CFLAGS="$CFLAGS -Wl,-headerpad_max_install_names"
98+
fi
9699
build_libwebp
97100
CFLAGS=$ORIGINAL_CFLAGS
98101

0 commit comments

Comments
 (0)