summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2022-08-02 00:34:01 +0200
committerSebastian Pipping <sebastian@pipping.org>2022-08-03 00:10:50 +0200
commit7731dd5b90621a9e4696d1c467bca2b6ece6e3e6 (patch)
treef6b80c469c74c7498c7db703373c1529a4c1a2a0 /.github
parente12e9ffb95f4f99c003050c782a76803567255d7 (diff)
downloadlibexpat-git-7731dd5b90621a9e4696d1c467bca2b6ece6e3e6.tar.gz
cmake: Produce libexpat-1.dll with MinGW in line with GNU Autotools
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autotools-cmake.yml14
1 files changed, 1 insertions, 13 deletions
diff --git a/.github/workflows/autotools-cmake.yml b/.github/workflows/autotools-cmake.yml
index c2f95614..f6fcc87c 100644
--- a/.github/workflows/autotools-cmake.yml
+++ b/.github/workflows/autotools-cmake.yml
@@ -119,18 +119,6 @@ jobs:
set -x
cd expat/expat-*.*.*/
- if [[ "${{ matrix.configure_args }}" == *mingw* ]]; then
- # There is one known difference between Autotools and CMake for MinGW:
- # Autotools: usr/local/bin/libexpat-<major>.dll
- # CMake: usr/local/bin/libexpat.dll
- # We patch the Autotools side in line here to get the differ below to empty.
- mv build_autotools/ROOT/usr/local/bin/libexpat{-*,}.dll
- ( cd build_autotools/ROOT/usr/local/lib*/cmake/expat-*/ \
- && sed 's,libexpat-[0-9]\+\.dll,libexpat.dll,g' expat-noconfig.cmake > expat-noconfig-patched.cmake \
- && ! diff -u0 expat-noconfig{,-patched}.cmake \
- && 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.
@@ -145,7 +133,7 @@ jobs:
--exclude=xmlwf \
--exclude=xmlwf.exe \
--exclude=libexpat.a \
- --exclude=libexpat.dll \
+ --exclude=libexpat-*.dll \
--exclude=libexpat.dll.a \
--exclude=libexpat.la \
--exclude=libexpat.so\* \