path: root/lib/librte_acl
diff options
authorAndrius Sirvys <>2019-03-11 15:18:11 +0000
committerThomas Monjalon <>2019-03-27 10:38:06 +0100
commitcd6683331dced0c910cb850a6d8f9bcd784ca693 (patch)
tree5f76cf40ccefe506c74f838c334b6e34d063061e /lib/librte_acl
parent88f591d1db49aede51a6ff92f7e89ceb7a6b79df (diff)
acl: fix compiler flags with meson and AVX2 runtime
When compiling the ACL library on a system without AVX2 support, the flags used to compile the AVX2-specific code for later run-time use were not based on the regular cflags for the rest of the library. This can cause errors due to symbols being missed/undefined due to incorrect flags. For example, when testing compilation on Alpine linux, we got: error: unknown type name 'cpu_set_t' due to _GNU_SOURCE not being defined in the cflags. This issue can be fixed by appending "-mavx2" to the cflags rather than replacing them with it. Fixes: 5b9656b157d3 ("lib: build with meson") Cc: Signed-off-by: Andrius Sirvys <> Acked-by: Bruce Richardson <>
Diffstat (limited to 'lib/librte_acl')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_acl/ b/lib/librte_acl/
index aec792f..2207dba 100644
--- a/lib/librte_acl/
+++ b/lib/librte_acl/
@@ -23,7 +23,7 @@ if arch_subdir == 'x86'
avx2_tmplib = static_library('avx2_tmp',
dependencies: static_rte_eal,
- c_args: '-mavx2')
+ c_args: cflags + ['-mavx2'])
objs += avx2_tmplib.extract_objects('acl_run_avx2.c')
cflags += '-DCC_AVX2_SUPPORT'