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:
parent
5cccee316a
commit
e9473edd3e
3
deps/freetype/build.rs
vendored
3
deps/freetype/build.rs
vendored
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user