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 35A5D43CB4; Thu, 14 Mar 2024 20:44:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4C874029B; Thu, 14 Mar 2024 20:44:41 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C0AE34029B for ; Thu, 14 Mar 2024 20:44:39 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id E99A020B74C0; Thu, 14 Mar 2024 12:44:38 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E99A020B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710445478; bh=by/djBVZ5w5nqzFz5hNQ/SOuuGwZJejPmXe3Evigmuw=; h=From:To:Cc:Subject:Date:From; b=h+t7wOOhBG0xcMTzsXTaKVzOJGIY2IfFutPAZzJ75WaANb2rm/6sC6pVDzU1ihBu8 eEeD7RhDiuoDzbC1hxVgYEIKfnspJc7t5NG/bSBP0pZkF0b8+rYHXk4V9tZjl6H/l6 IVLwyBOPASiKnZPTbSokv4tkwMRz/mMKywL96PUk= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Harman Kalra , Tyler Retzlaff Subject: [PATCH] build and install only one library type on Windows Date: Thu, 14 Mar 2024 12:44:36 -0700 Message-Id: <1710445477-23848-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 MSVC is the only compiler that can produce usable shared libraries for DPDK on Windows because of the use of exported TLS variables. Disable building of shared libraries with LLVM and MinGW so that remaining __declspec macros needed for the functional libraries built by MSVC can be used without triggering errors in LLVM and MinGW builds. For Windows only install the default_library type to avoid confusion. Windows builds cannot build both shared and static in a single pass so install only the functional variant MSVC does not guarantee any kind of compatibility for static libraries so they should not be packaged and instead they should be rebuilt along with the application using the same version of the compiler & linker. Because of this we have chosen to build only one library type at a time instead of compiling twice to produce both types in a single pass. Tyler Retzlaff (1): build: build only one library type on Windows config/meson.build | 20 +++++++ drivers/meson.build | 51 ++++++++++-------- drivers/net/octeontx/base/meson.build | 2 +- lib/meson.build | 98 +++++++++++++++++++---------------- 4 files changed, 101 insertions(+), 70 deletions(-) -- 1.8.3.1