summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-08-03 10:25:46 (GMT)
committerThomas Haller <thaller@redhat.com>2023-08-03 15:36:17 (GMT)
commit391063096b5091a1b61dff8e5b4a9a49b01f5abe (patch)
treeded637645b57d76e13916ffae3cd1d00973d546e
parentf475c3b2b10dbab2dde8128e12b4187eafb9c12a (diff)
downloadlibnl-391063096b5091a1b61dff8e5b4a9a49b01f5abe.zip
libnl-391063096b5091a1b61dff8e5b4a9a49b01f5abe.tar.gz
libnl-391063096b5091a1b61dff8e5b4a9a49b01f5abe.tar.bz2
github: add test for linking with mold and fail on unknown versions
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 04316d3..7854579 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -73,6 +73,9 @@ jobs:
export CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11"
if [ "$CC" = "clang" ]; then
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
+ export LDFLAGS="-Wl,--no-undefined-version,--fatal-warnings"
+ else
+ export LDFLAGS="-Wl,--no-undefined-version"
fi
./autogen.sh
@@ -138,4 +141,14 @@ jobs:
export NLTST_SEED_RAND=
make -j 5 check
+ - name: Link with mold
+ run: |
+ sudo apt-get -y --no-install-recommends install \
+ mold
+ git clean -fdx
+ export LDFLAGS="-fuse-ld=mold -Wl,--fatal-warnings"
+ ./autogen.sh
+ ./configure
+ make -j 5 V=1
+
- run: echo "🍏 This job's status is ${{ job.status }}."