summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2021-09-08 17:57:00 +0200
committerSebastian Pipping <sebastian@pipping.org>2021-09-20 18:27:52 +0200
commit0b7a88b35593b15c97b8f12f0e27ddec7e9ab756 (patch)
treebdd87cde5f36a0ae6d20cbb8af068eca04dd0dd0 /.github
parent634cc999e0dd43d5c11a4abe9fb5e42241f30473 (diff)
downloadlibexpat-git-0b7a88b35593b15c97b8f12f0e27ddec7e9ab756.tar.gz
Autotools|CMake: Link against libm for function "isnan"
$ git --no-pager grep -lw isnan lib/xmlparse.c tests/runtests.c xmlwf/xmlwf.c
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autotools-cmake.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/autotools-cmake.yml b/.github/workflows/autotools-cmake.yml
index 306c096b..ed9c94ae 100644
--- a/.github/workflows/autotools-cmake.yml
+++ b/.github/workflows/autotools-cmake.yml
@@ -74,6 +74,7 @@ jobs:
automake \
cmake \
docbook2x \
+ gnu-sed \
libtool \
lzip
@@ -128,6 +129,14 @@ jobs:
&& mv expat-noconfig{-patched,}.cmake )
fi
+ if [[ "${{ runner.os }}" == macOS ]]; then
+ # Autotools' LT_LIB_M has a hardcoded exclude for "*-*-darwin*" hosts,
+ # while macOS does have libm and is successfully found by CMake.
+ # We patch the CMake side in line here to get the differ below to empty.
+ export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:${PATH}"
+ sed 's,-lm,,' -i build_cmake/ROOT/usr/local/lib*/pkgconfig/expat.pc
+ fi
+
diff \
--recursive \
--unified \