git: 89bcc8c4a4c7 - main - net/dpdk-20.11: Fix build warnings about symbols in version map file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Jan 2024 20:36:50 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=89bcc8c4a4c73820d3a02f5ae2da038aff66cd02
commit 89bcc8c4a4c73820d3a02f5ae2da038aff66cd02
Author: Bruce Richardson <bruce.richardson@intel.com>
AuthorDate: 2024-01-14 08:12:56 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-01-14 20:28:30 +0000
net/dpdk-20.11: Fix build warnings about symbols in version map file
The latest versions of ld are throwing warnings/errors about entries in
the linker script that don't exist in the actual build. For DPDK, there
are functions in the linker script (version.map) which only exist on Linux
(and sometimes only on Windows) but not on BSD. To avoid warnings/errors,
we can restore old behaviour by adding the "-Wl,--undefined-version"
flag to the build.
PR: 276277
---
net/dpdk-20.11/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/dpdk-20.11/Makefile b/net/dpdk-20.11/Makefile
index e5387d1a6438..ca8bf7b52cbe 100644
--- a/net/dpdk-20.11/Makefile
+++ b/net/dpdk-20.11/Makefile
@@ -31,6 +31,7 @@ SHEBANG_FILES= examples/ipsec-secgw/test/pkttest.py \
usertools/dpdk-telemetry.py
MESON_ARGS= -Ddefault_library=shared \
-Denable_kmods=true \
+ -Dc_link_args=-Wl,--undefined-version \
-Dmachine=default
WRKSRC= ${WRKDIR}/${PORTNAME}-stable-${PORTVERSION}