Skip to content

Commit 1c33dd7

Browse files
committed
on intel compile arm64 harfbuzz can't find pkg-config
1 parent 8b3823d commit 1c33dd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apple/init-env.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ function init_plat_env() {
5656

5757
if [[ "$XC_PLAT" != 'macos' ]]; then
5858
export XC_FORCE_CROSS=true
59-
export PKG_CONFIG=$(which pkg-config)
6059
fi
60+
#on intel compile arm64 harfbuzz can't find pkg-config
61+
export PKG_CONFIG=$(which pkg-config)
6162

6263
if [[ "$XC_PLAT" == 'ios' ]]; then
6364
export XC_OTHER_CFLAGS="-fembed-bitcode"
@@ -126,6 +127,7 @@ function init_libs_pkg_config_path() {
126127
# https://gstreamer-devel.narkive.com/TeNagSKN/gst-devel-disabling-pkg-config-path
127128
# export PKG_CONFIG_LIBDIR=${sysroot}/lib/pkgconfig
128129
export PKG_CONFIG_LIBDIR="$pkg_cfg_dir"
130+
echo "PKG_CONFIG_LIBDIR:$PKG_CONFIG_LIBDIR"
129131
}
130132

131133
function init_arch_env () {

0 commit comments

Comments
 (0)