From 420a0a245591ea73f86ebfb90de207a8e67e6cca Mon Sep 17 00:00:00 2001 From: NRK Date: Thu, 6 Jun 2024 10:46:04 +0000 Subject: ci: fix macos build for whatever reason, the path where homebrew installs headers and libraries are no longer being searched by default. work around it by manually specifying them with -I and -L. --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b6af3f..054dd94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,11 @@ jobs: - name: build run: | # libinotify-kqueue isn't available on homebrew - make clean && make -s OPT_DEP_DEFAULT=1 HAVE_INOTIFY=0 + make clean && make -s OPT_DEP_DEFAULT=1 HAVE_INOTIFY=0 \ + CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/include/freetype2" \ + LDLIBS="-L/opt/homebrew/lib" # force uninstallation with --ignore-dependencies brew uninstall --ignore-dependencies libxft libexif - make clean && make -s OPT_DEP_DEFAULT=0 + make clean && make -s OPT_DEP_DEFAULT=0 \ + CPPFLAGS="-I/opt/homebrew/include" \ + LDLIBS="-L/opt/homebrew/lib" -- cgit v1.2.3-54-g00ecf