Fix the path to fontconfig configuration file

instead of using the install prefix + /etc or /var

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka 2023-03-12 13:12:43 +08:00 committed by BtbN
parent 193f55691b
commit a6e38b38fd

View file

@ -22,7 +22,13 @@ ffbuild_dockerbuild() {
--enable-static --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+=( myconf+=(
--host="$FFBUILD_TOOLCHAIN" --host="$FFBUILD_TOOLCHAIN"
) )