summaryrefslogtreecommitdiff
path: root/.github/workflows/autotools-cmake.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/autotools-cmake.yml')
-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 \