git: a11f3cf1acfa - main - net/dpdk: 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:49 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a11f3cf1acfa50cb00aae97b629e5163a7b6cb7b
commit a11f3cf1acfa50cb00aae97b629e5163a7b6cb7b
Author: Bruce Richardson <bruce.richardson@intel.com>
AuthorDate: 2024-01-14 08:11:02 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-01-14 20:28:30 +0000
net/dpdk: 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/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/dpdk/Makefile b/net/dpdk/Makefile
index 0696d3ea44af..9a21be853ae7 100644
--- a/net/dpdk/Makefile
+++ b/net/dpdk/Makefile
@@ -44,6 +44,7 @@ DPDK_CPUTYPE=default
MESON_ARGS= -Ddefault_library=shared \
-Denable_kmods=true \
+ -Dc_link_args=-Wl,--undefined-version \
-Dmachine=${DPDK_CPUTYPE}
WRKSRC= ${WRKDIR}/${PORTNAME}-stable-${DISTVERSION}