From: Mostyn Bramley-Moore Date: Sat, 7 Dec 2024 23:11:19 +0000 (+0100) Subject: ci: make autoconf look for headers and libraries in /opt/homebrew if those directorie... X-Git-Tag: v3.8.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29802f6a5e8543e61bac7d9dede42abf21ded5aa;p=thirdparty%2Flibarchive.git ci: make autoconf look for headers and libraries in /opt/homebrew if those directories exist (#2427) Prior to this change, the ci autoconf jobs weren't looking for homebrew headers or libraries unless pkg-config was used, so for example the "MacOS (autotools)" ci job wasn't testing lz4 or zstd code. Relates to #2426. --- diff --git a/build/ci/build.sh b/build/ci/build.sh index 687e8e1b4..3a1558264 100755 --- a/build/ci/build.sh +++ b/build/ci/build.sh @@ -91,6 +91,12 @@ if [ -z "${MAKE_ARGS}" ]; then MAKE_ARGS="VERBOSE=1" fi fi +if [ -d /opt/homebrew/include ]; then + export CFLAGS="${CFLAGS} -I/opt/homebrew/include" +fi +if [ -d /opt/homebrew/lib ]; then + export LDFLAGS="${LDFLAGS} -L/opt/homebrew/lib" +fi if [ -n "${DEBUG}" ]; then if [ -n "${CFLAGS}" ]; then export CFLAGS="${CFLAGS} -g -fsanitize=address"