path: root/
diff options
authorBruce Richardson <>2017-12-15 17:12:43 +0000
committerBruce Richardson <>2018-01-30 21:58:59 +0100
commitb114af1603db1e955c7efc94370b1d83bbb8f31f (patch)
tree50c8d7aba8aac87b4c23199b550b06b160a6126e /
parent6c9457c27954f16d99f3798711eb253fbaf05fa3 (diff)
build: remove architecture flag as default C flag
Any flags added to the project args are automatically added to all builds, both native and cross-compiled. This is not what we want for the -march flag as a valid -march for the cross-compile is not valid for pmdinfogen which is a native-build tool. Instead we store the march flag as a variable, and add it to the default cflags for all libs, drivers, examples, etc. This will allow pmdinfogen to compile successfully in a cross-compilation environment. Signed-off-by: Bruce Richardson <> Acked-by: Luca Boccassi <>
Diffstat (limited to '')
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index 56a8c64..f572d93 100644
--- a/
+++ b/
@@ -65,5 +65,5 @@ pkg.generate(name: meson.project_name(),
['-Wl,-Bdynamic'] + dpdk_extra_ldflags,
description: 'The Data Plane Development Kit (DPDK)',
subdirs: [get_option('include_subdir_arch'), '.'],
- extra_cflags: ['-include', 'rte_config.h', '-march=@0@'.format(machine)]
+ extra_cflags: ['-include', 'rte_config.h', machine_arg]