summaryrefslogtreecommitdiff
path: root/examples/meson.build
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2017-11-03 17:27:32 +0000
committerBruce Richardson <bruce.richardson@intel.com>2018-01-30 21:58:59 +0100
commit3e5c3d58e1dbbcdc803ca87ebf1d26129645d70a (patch)
tree188606c0ac590f4da9aa92640361b7ad3fb0d468 /examples/meson.build
parent029ea64575b6ba8b7cac60b9d1ddd08cbbbb3737 (diff)
downloaddpdk-draft-windows-3e5c3d58e1dbbcdc803ca87ebf1d26129645d70a.zip
dpdk-draft-windows-3e5c3d58e1dbbcdc803ca87ebf1d26129645d70a.tar.gz
dpdk-draft-windows-3e5c3d58e1dbbcdc803ca87ebf1d26129645d70a.tar.xz
build: build as both static and shared libs
This patch changes the build process to group all .o files for a driver or library into a static archive first, and then link the .o files together into a shared library. This eliminates the need for separate static or shared object builds when packaging, for instance. The "default_library" configuration option now only affects the apps and examples, which are either linked against the static or shared library versions depending on the value of the option. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples/meson.build')
-rw-r--r--examples/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/meson.build b/examples/meson.build
index 8ee33c1..32d911c 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -46,7 +46,7 @@ foreach example: get_option('examples').split(',')
dep_objs = ext_deps
foreach d:deps
- dep_objs += [get_variable('dep_rte_' + d)]
+ dep_objs += [get_variable(get_option('default_library') + '_rte_' + d)]
endforeach
if allow_experimental_apis
cflags += '-DALLOW_EXPERIMENTAL_API'