mk: build with _GNU_SOURCE defined by default
[dpdk.git] / app / meson.build
index 7491316..e68d949 100644 (file)
@@ -1,19 +1,28 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-apps = ['test-eventdev',
+apps = ['pdump',
+       'proc-info',
+       'test-bbdev',
+       'test-crypto-perf',
+       'test-eventdev',
        'test-pmd']
 
 # for BSD only
 lib_execinfo = cc.find_library('execinfo', required: false)
 
+default_cflags = machine_args
+
+# specify -D_GNU_SOURCE unconditionally
+default_cflags += '-D_GNU_SOURCE'
+
 foreach app:apps
        build = true
        name = app
        allow_experimental_apis = false
        sources = []
        includes = []
-       cflags = machine_args
+       cflags = default_cflags
        objs = [] # other object files to link against, used e.g. for
                  # instruction-set optimized versions of code