From 37a95bbff027885f6f5968fd5c6cf689727ecb7c Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 12 Nov 2019 16:41:36 +0000 Subject: [PATCH] kernel/freebsd: always use clang for kmod compilation Clang is the system compiler for FreeBSD and kernel module builds can fail when built with gcc, e.g. when testing with test-meson-builds.sh. Therefore, it's safer to always use clang to build the kmods since the actual flags used are outside of DPDK's control and cannot be guaranteed to work with all compilers. Signed-off-by: Bruce Richardson Acked-by: Luca Boccassi --- kernel/freebsd/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/freebsd/meson.build b/kernel/freebsd/meson.build index ab1177147a..dc156a43fd 100644 --- a/kernel/freebsd/meson.build +++ b/kernel/freebsd/meson.build @@ -26,7 +26,8 @@ foreach k:kmods 'KMOD_OBJDIR=@OUTDIR@', 'KMOD_SRC=@INPUT1@', 'KMOD=' + k, - 'KMOD_CFLAGS=' + ' '.join(kmod_cflags)], + 'KMOD_CFLAGS=' + ' '.join(kmod_cflags), + 'CC=clang'], depends: built_kmods, # make each module depend on prev build_by_default: get_option('enable_kmods'), install: get_option('enable_kmods'), -- 2.20.1