From 462f5db551870af51eb9a0a0ed555adb8e916242 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 11 Nov 2024 20:44:46 -0500 Subject: [PATCH] Use brew's readline in macOS autotools GitHub builds It's keg-only to avoid conflicting with libedit provided by the system, so we need to specify the paths in order for it to be detected. Otherwise, we end up building it every time! --- .github/workflows/test_build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index 1848401dcaa..d00762e93b7 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -157,8 +157,12 @@ jobs: ../../autogen.sh export PYVERSION=`python3 -c "from sys import version_info; \ print(f'{version_info.major}.{version_info.minor}')"` - export CPPFLAGS="-I`brew --prefix`/include -I`brew --prefix libomp`/include" - export LDFLAGS="-L`brew --prefix`/lib -L`brew --prefix libomp`/lib \ + export CPPFLAGS="-I`brew --prefix`/include \ + -I`brew --prefix libomp`/include \ + -I`brew --prefix readline`/include" + export LDFLAGS="-L`brew --prefix`/lib \ + -L`brew --prefix libomp`/lib \ + -L`brew --prefix readline`/lib \ -L/Library/Frameworks/Python.framework/Versions/${PYVERSION}/lib" export F77=gfortran-14 ../../configure --enable-download --with-system-gc