]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
ci: make autoconf look for headers and libraries in /opt/homebrew if those directorie...
authorMostyn Bramley-Moore <mostyn@antipode.se>
Sat, 7 Dec 2024 23:11:19 +0000 (00:11 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Dec 2024 23:11:19 +0000 (15:11 -0800)
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.

build/ci/build.sh

index 687e8e1b44e2d42ca0c05d2e8e1671c74d58a4eb..3a15582640f16d8343d2a53659b221a5fb8a5fbe 100755 (executable)
@@ -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"