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
1 changed files with 7 additions and 1 deletions

View File

@ -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"
)