summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2019-01-10 17:28:06 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-01-28 01:49:38 +0100
commitccee5d18a470242ee86c58c9203b40ca112a49b3 (patch)
tree60e440390bc4cbb8ded200c8d2a1b422a145d31d /meson.build
parent8a9a4eaf8390df62914f3bfd4ad957b4b7a80ce4 (diff)
downloaddpdk-ccee5d18a470242ee86c58c9203b40ca112a49b3.zip
dpdk-ccee5d18a470242ee86c58c9203b40ca112a49b3.tar.gz
dpdk-ccee5d18a470242ee86c58c9203b40ca112a49b3.tar.xz
build: mention -march in pkg-config description
Applications need to at least match DPDK's -march option to build successfully due to some static inline functions in the public headers. This might cause problems, especially in distributions, so add a note in the pkg-config description. Fixes: a25a650be5f0 ("build: add infrastructure for meson and ninja builds") Cc: stable@dpdk.org Signed-off-by: Luca Boccassi <bluca@debian.org> Reviewed-by: Gavin Hu <gavin.hu@arm.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index fcc30ab..68429f8 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,9 @@ pkg.generate(name: meson.project_name(),
libraries: dpdk_libraries,
libraries_private: dpdk_drivers + dpdk_static_libraries +
['-Wl,-Bdynamic'] + dpdk_extra_ldflags,
- description: 'The Data Plane Development Kit (DPDK)',
+ description: '''The Data Plane Development Kit (DPDK).
+Note that CFLAGS might contain an -march flag higher than typical baseline.
+This is required for a number of static inline functions in the public headers.''',
subdirs: [get_option('include_subdir_arch'), '.'],
extra_cflags: ['-include', 'rte_config.h'] + machine_args
)