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).
This commit is contained in:
Carlos Fernandez
2025-12-20 18:48:43 +01:00
parent 70404c29ca
commit d8504f80bd

View File

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