fontconfig: Fix cross building

The fontconfig autotools build attempts to check for va_copy with a
test program. This doesn't work cross, but we can hardcode the result.

It may be best to use meson in the future.
This commit is contained in:
Artemis Tosini
2026-06-22 16:48:49 -04:00
parent 0f0b57829b
commit ce5d29c0b7
@@ -67,11 +67,12 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--with-arch=${stdenv.hostPlatform.parsed.cpu.name}"
"ac_cv_va_copy=C99"
];
enableParallelBuilding = true;
doCheck = true;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
installFlags = [
# Don't try to write to /var/cache/fontconfig at install time.