From e9473edd3e94aba5672de43f634e751d292994ca Mon Sep 17 00:00:00 2001 From: Tom <53666156+tom-miller1@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:52:19 -0500 Subject: [PATCH] Disable libpng VSX_OPT flag for PowerPC 64 Fix a linker error in wezterm-gui due to a missing libpng feature on modern PowerPC 64-bit platforms. --- deps/freetype/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/freetype/build.rs b/deps/freetype/build.rs index b4a8407b8..ed323f041 100644 --- a/deps/freetype/build.rs +++ b/deps/freetype/build.rs @@ -93,6 +93,9 @@ fn libpng() { cfg.define("HAVE_STDINT_H", None); cfg.define("HAVE_STDDEF_H", None); let target = env::var("TARGET").unwrap(); + if target.contains("powerpc64") { + cfg.define("PNG_POWERPC_VSX_OPT", Some("0")); + } if !target.contains("windows") { cfg.define("_LARGEFILE64_SOURCE", Some("1")); }