summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-03-13 18:06:51 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-03-31 01:03:08 +0100
commit302ea8e0fab497c55aaae51ebf084817958dec23 (patch)
tree4421765a95916121957a596b538278719fddde47 /app
parentf6d163a6dc39cdcc618f3e865658da508afeb527 (diff)
downloaddpdk-next-eventdev-302ea8e0fab497c55aaae51ebf084817958dec23.zip
dpdk-next-eventdev-302ea8e0fab497c55aaae51ebf084817958dec23.tar.gz
dpdk-next-eventdev-302ea8e0fab497c55aaae51ebf084817958dec23.tar.xz
app/test: fix flags with meson
in app/test/meson.build the default_cflag is never used so the -D_GNU_SOURCE was never passed as intended. Fixes the following build error with musl libc: lib/librte_eal/common/include/rte_lcore.h:26:9: error: unknown type name 'cpu_set_t' typedef cpu_set_t rte_cpuset_t; ^~~~~~~~~ The problem is that cpu_set_t is only defined when _GNU_SOURCE is set. Fixes: 5d7b673d5fd6 ("mk: build with _GNU_SOURCE defined by default") Cc: stable@dpdk.org Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'app')
-rw-r--r--app/test/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/meson.build b/app/test/meson.build
index ddb4d09..c5e65fe 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -299,7 +299,7 @@ if cc.has_argument('-Wno-format-truncation')
endif
# specify -D_GNU_SOURCE unconditionally
-default_cflags += '-D_GNU_SOURCE'
+cflags += '-D_GNU_SOURCE'
test_dep_objs = []
if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV')