From: Bruce Richardson Date: Wed, 1 May 2019 15:53:29 +0000 (+0100) Subject: crypto/zuc: fix dependency check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d0246e0fdc8fd8eeb43f1b0f28330516bdff31eb;p=dpdk.git crypto/zuc: fix dependency check The check for the zuc library dependency did not check for the include file needed for compilation. It's also recommended when looking for a library to use the name without the lib prefix. Fixes: df1740a8db5f ("crypto/zuc: enable meson build") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- diff --git a/drivers/crypto/zuc/meson.build b/drivers/crypto/zuc/meson.build index 63f2a5298e..fc29002442 100644 --- a/drivers/crypto/zuc/meson.build +++ b/drivers/crypto/zuc/meson.build @@ -1,13 +1,13 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation -lib = cc.find_library('libsso_zuc', required: false) -if not lib.found() +lib = cc.find_library('sso_zuc', required: false) +if not lib.found() or not cc.has_header('sso_zuc.h') build = false -else - ext_deps += lib + subdir_done() endif allow_experimental_apis = true +ext_deps += lib sources = files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c') deps += ['bus_vdev']