From d8504f80bdcdcd9df57c899f556933843bdfe00c Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 20 Dec 2025 18:48:43 +0100 Subject: [PATCH] ci(mac): Set Homebrew paths for autoconf HARDSUBX build The AC_CHECK_LIB checks in configure.ac need LDFLAGS and CPPFLAGS to find libraries installed via Homebrew (in /opt/homebrew on Apple Silicon or /usr/local on Intel Macs). --- .github/workflows/build_mac.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml index 92d505d6..015ea0a1 100644 --- a/.github/workflows/build_mac.yml +++ b/.github/workflows/build_mac.yml @@ -132,7 +132,13 @@ jobs: run: ./autogen.sh working-directory: ./mac - name: configure with hardsubx - run: ./configure --enable-hardsubx --enable-ocr + run: | + # Set Homebrew paths for configure to find libraries + export HOMEBREW_PREFIX="$(brew --prefix)" + export LDFLAGS="-L${HOMEBREW_PREFIX}/lib" + export CPPFLAGS="-I${HOMEBREW_PREFIX}/include" + export PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/lib/pkgconfig" + ./configure --enable-hardsubx --enable-ocr working-directory: ./mac - name: make run: make