Skip to content

Commit

Permalink
Use brew's readline in macOS autotools GitHub builds
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
d-torrance committed Nov 12, 2024
1 parent 26c1f75 commit 462f5db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 462f5db

Please sign in to comment.