From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3631C43E7C; Mon, 15 Apr 2024 18:45:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F30704021E; Mon, 15 Apr 2024 18:45:47 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 16A29400EF for ; Mon, 15 Apr 2024 18:45:46 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 64DAA20FC5F8; Mon, 15 Apr 2024 09:45:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 64DAA20FC5F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713199545; bh=c9xvG13FHzXHpfP/LYwgRgfb6GqmmC5wr44sWUnfBqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JXx4/AfQsblAPvvRB3LZZzCcGZjRey7Xg0pJMDuyYprLOL4Zt9XhXdOqaG8G9smXj m8tfQI/AUTkb2s0MfMIQcvXVdnMBqQQvqOO3IeiCCekJKhfbi9zyGgL0q/HHn2c3uB 3A+a5Cqp/T+BJmQr7guhcf1cB5EWBru86t69rGeU= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Harman Kalra , Tyler Retzlaff Subject: [PATCH v4 2/2] buildtools: when building static library use static deps Date: Mon, 15 Apr 2024 09:45:43 -0700 Message-Id: <1713199543-30038-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1713199543-30038-1-git-send-email-roretzla@linux.microsoft.com> References: <1710445477-23848-1-git-send-email-roretzla@linux.microsoft.com> <1713199543-30038-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Use the value of default_library and use it when building deps instead of always using static deps so we get the correct static or shared deps. Signed-off-by: Tyler Retzlaff --- buildtools/chkincs/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build index f2dadca..5546489 100644 --- a/buildtools/chkincs/meson.build +++ b/buildtools/chkincs/meson.build @@ -20,10 +20,11 @@ sources += gen_c_files.process(dpdk_chkinc_headers) # some driver SDK headers depend on these two buses, which are mandatory in build # so we always include them in deps list -deps = [get_variable('shared_rte_bus_vdev'), get_variable('shared_rte_bus_pci')] +library_type = get_option('default_library') +deps = [get_variable(library_type + '_rte_bus_vdev'), get_variable(library_type + '_rte_bus_pci')] # add the rest of the libs to the dependencies foreach l:dpdk_libs_enabled - deps += get_variable('shared_rte_' + l) + deps += get_variable(library_type + '_rte_' + l) endforeach executable('chkincs', sources, -- 1.8.3.1