1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

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.
This commit is contained in:
Tom 2024-11-27 11:52:19 -05:00 committed by Wez Furlong
parent 5cccee316a
commit e9473edd3e

View File

@ -93,6 +93,9 @@ fn libpng() {
cfg.define("HAVE_STDINT_H", None); cfg.define("HAVE_STDINT_H", None);
cfg.define("HAVE_STDDEF_H", None); cfg.define("HAVE_STDDEF_H", None);
let target = env::var("TARGET").unwrap(); let target = env::var("TARGET").unwrap();
if target.contains("powerpc64") {
cfg.define("PNG_POWERPC_VSX_OPT", Some("0"));
}
if !target.contains("windows") { if !target.contains("windows") {
cfg.define("_LARGEFILE64_SOURCE", Some("1")); cfg.define("_LARGEFILE64_SOURCE", Some("1"));
} }