From a6e38b38fd9f6a7329b72c59d382edd2d8a0203d Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Sun, 12 Mar 2023 13:12:43 +0800 Subject: [PATCH] Fix the path to fontconfig configuration file instead of using the install prefix + /etc or /var Signed-off-by: nyanmisaka --- scripts.d/35-fontconfig.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts.d/35-fontconfig.sh b/scripts.d/35-fontconfig.sh index 3c20840..cb12f14 100755 --- a/scripts.d/35-fontconfig.sh +++ b/scripts.d/35-fontconfig.sh @@ -22,7 +22,13 @@ ffbuild_dockerbuild() { --enable-static ) - if [[ $TARGET == win* || $TARGET == linux* ]]; then + if [[ $TARGET == linux* ]]; then + myconf+=( + --sysconfdir=/etc + --localstatedir=/var + --host="$FFBUILD_TOOLCHAIN" + ) + elif [[ $TARGET == win* ]]; then myconf+=( --host="$FFBUILD_TOOLCHAIN" )