Fix use of pkg-config when building SM on macOS

This commit is contained in:
Itms
2025-08-06 22:30:53 +02:00
parent ecfa5be686
commit 733297a038
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -183,6 +183,7 @@ if [ $force_rebuild = "true" ]; then
rm -rf "$PC_PATH"
fi
mkdir -p "$PC_PATH"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${PC_PATH}"
echo "Building third-party dependencies..."
# --------------------------------------------------------------
+1 -2
View File
@@ -128,8 +128,7 @@ rm -Rf "${FOLDER}"
fi
CONF_OPTS="${CONF_OPTS} --target=$ARCH-apple-darwin"
# Link to custom-built zlib
export PKG_CONFIG_PATH="=${ZLIB_DIR}:${PKG_CONFIG_PATH}"
# This needs PKG_CONFIG_PATH to be exported in build-macos-libs.sh
CONF_OPTS="${CONF_OPTS} --with-system-zlib"
# Specify target versions and SDK
if [ "${MIN_OSX_VERSION}" ] && [ "${MIN_OSX_VERSION-_}" ]; then