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 <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
parent
23a5bb477a
commit
37a95bbff0
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user