summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2017-12-15 17:12:43 +0000
committerBruce Richardson <bruce.richardson@intel.com>2018-01-30 21:58:59 +0100
commitb114af1603db1e955c7efc94370b1d83bbb8f31f (patch)
tree50c8d7aba8aac87b4c23199b550b06b160a6126e /buildtools
parent6c9457c27954f16d99f3798711eb253fbaf05fa3 (diff)
downloaddpdk-next-eventdev-b114af1603db1e955c7efc94370b1d83bbb8f31f.zip
dpdk-next-eventdev-b114af1603db1e955c7efc94370b1d83bbb8f31f.tar.gz
dpdk-next-eventdev-b114af1603db1e955c7efc94370b1d83bbb8f31f.tar.xz
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 <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/pmdinfogen/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildtools/pmdinfogen/meson.build b/buildtools/pmdinfogen/meson.build
index ea37370..a219a8e 100644
--- a/buildtools/pmdinfogen/meson.build
+++ b/buildtools/pmdinfogen/meson.build
@@ -6,5 +6,4 @@ pmdinfogen_inc += include_directories('../../lib/librte_pci')
pmdinfogen = executable('pmdinfogen',
'pmdinfogen.c',
include_directories: pmdinfogen_inc,
- native: true,
- c_args: cflags)
+ native: true)