X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=config%2Fmeson.build;h=3cf560b8a3f5a9832b5012e9778e86443ff4ec31;hb=72f64d102290cdc4720b27871904d9adace6f5fb;hp=1e6dfe0753b73010226e9dabd307492e8d3d7596;hpb=762bfccc8abfb44995e4884136f7838fb500b507;p=dpdk.git diff --git a/config/meson.build b/config/meson.build index 1e6dfe0753..3cf560b8a3 100644 --- a/config/meson.build +++ b/config/meson.build @@ -167,7 +167,7 @@ if fdt_dep.found() and cc.has_header('fdt.h') endif # check for libbsd -libbsd = dependency('libbsd', required: false) +libbsd = dependency('libbsd', required: false, method: 'pkg-config') if libbsd.found() dpdk_conf.set('RTE_USE_LIBBSD', 1) endif @@ -330,3 +330,12 @@ if get_option('b_lto') add_project_link_arguments('-Wno-lto-type-mismatch', language: 'c') endif endif + +if get_option('default_library') == 'both' + error( ''' + Unsupported value "both" for "default_library" option. + + NOTE: DPDK always builds both shared and static libraries. Please set + "default_library" to either "static" or "shared" to select default linkage + for apps and any examples.''') +endif