mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-11-16 17:21:13 +00:00
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:
8
.github/workflows/build_mac.yml
vendored
8
.github/workflows/build_mac.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user