Skip to content

Commit

Permalink
net/dpdk: Fix build warnings about symbols in version map file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bruce-richardson authored and Daniel Engberg committed Jan 14, 2024
1 parent 03dfdf4 commit a11f3cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/dpdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a11f3cf

Please sign in to comment.