From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7EDDFA04AD; Fri, 1 May 2020 15:59:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0EAF31DA3F; Fri, 1 May 2020 15:59:19 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 3034B1DA23 for ; Fri, 1 May 2020 15:59:17 +0200 (CEST) IronPort-SDR: qLNdY5W9tjp7Xr3qwOqw9vrnkat0MRhETI7ZZy7wPuF5s0QxTpYT+pdX/DU1iclldKSC/eO0Z6 yic7DduTZn1g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 06:59:15 -0700 IronPort-SDR: ERnkbQ9qkRTQv6USQIfgH2lWX3W90d66m/Vn1cqdThh1MkRCxTNSNv+wIDqyljG/yXBlZ7i74x swM2D5v0fllQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,339,1583222400"; d="scan'208";a="433318794" Received: from silpixa00399126.ir.intel.com ([10.237.222.218]) by orsmga005.jf.intel.com with ESMTP; 01 May 2020 06:59:14 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: thomas@monjalon.net, bluca@debian.org, david.marchand@redhat.com, ktraynor@redhat.com, Bruce Richardson Date: Fri, 1 May 2020 14:53:54 +0100 Message-Id: <20200501135401.28124-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200429100831.398-1-bruce.richardson@intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 0/7] improve DPDK static builds with meson X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This set fixes a number of minor issues with static builds when using meson, both for linking apps/examples as part of a meson build itself or when using pkg-config subsequently. Following this patchset, all DPDK static builds should be linking with --whole-archive to ensure all lib and driver constructors are included, and the use of pkg-config for doing static builds is simplified. The downside is that for correctness we need two .pc files for DPDK rather than just one. v2: improved log messages for a number of patches, and clearly marked internal-only pkg-config file as such Bruce Richardson (7): build: always link-whole DPDK static libraries build: remove unnecessary variable devtools/test-meson-builds.sh: add pkg-config static builds build: move pkg-config creation to separate file build/pkg-config: output driver libs first for static build build/pkg-config: improve static linking flags build/pkg-config: prevent overlinking app/meson.build | 2 +- app/test/meson.build | 2 +- buildtools/pkg-config/meson.build | 43 +++++++++++++++++++ .../pkg-config/set-static-linker-flags.py | 38 ++++++++++++++++ devtools/test-meson-builds.sh | 2 +- doc/guides/prog_guide/build-sdk-meson.rst | 2 +- drivers/meson.build | 2 +- examples/bbdev_app/Makefile | 2 +- examples/bond/Makefile | 2 +- examples/cmdline/Makefile | 2 +- examples/distributor/Makefile | 2 +- examples/eventdev_pipeline/Makefile | 2 +- examples/fips_validation/Makefile | 2 +- examples/flow_classify/Makefile | 2 +- examples/flow_filtering/Makefile | 2 +- examples/helloworld/Makefile | 2 +- examples/ioat/Makefile | 2 +- examples/ip_fragmentation/Makefile | 2 +- examples/ip_pipeline/Makefile | 2 +- examples/ip_reassembly/Makefile | 2 +- examples/ipsec-secgw/Makefile | 2 +- examples/ipv4_multicast/Makefile | 2 +- examples/kni/Makefile | 2 +- examples/l2fwd-cat/Makefile | 2 +- examples/l2fwd-crypto/Makefile | 2 +- examples/l2fwd-event/Makefile | 2 +- examples/l2fwd-jobstats/Makefile | 2 +- examples/l2fwd-keepalive/Makefile | 2 +- examples/l2fwd/Makefile | 2 +- examples/l3fwd-acl/Makefile | 2 +- examples/l3fwd-power/Makefile | 2 +- examples/l3fwd/Makefile | 2 +- examples/link_status_interrupt/Makefile | 2 +- examples/meson.build | 6 +-- examples/ntb/Makefile | 2 +- examples/packet_ordering/Makefile | 2 +- examples/ptpclient/Makefile | 2 +- examples/qos_meter/Makefile | 2 +- examples/qos_sched/Makefile | 2 +- examples/rxtx_callbacks/Makefile | 2 +- examples/service_cores/Makefile | 2 +- examples/skeleton/Makefile | 2 +- examples/tep_termination/Makefile | 2 +- examples/timer/Makefile | 2 +- examples/vdpa/Makefile | 2 +- examples/vhost/Makefile | 2 +- examples/vhost_blk/Makefile | 2 +- examples/vhost_crypto/Makefile | 2 +- examples/vmdq/Makefile | 2 +- examples/vmdq_dcb/Makefile | 2 +- lib/librte_telemetry/meson.build | 1 - lib/meson.build | 2 +- meson.build | 26 +---------- 53 files changed, 134 insertions(+), 76 deletions(-) create mode 100644 buildtools/pkg-config/meson.build create mode 100644 buildtools/pkg-config/set-static-linker-flags.py -- 2.20.1