From nobody Tue Feb 10 02:27:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1601496059; cv=none; d=zohomail.com; s=zohoarc; b=UQHn0S8oPP9MLJpn63F+fo7BSNI4cH1KRsaHSBL61dvxUHmftY/fF3XCNNnP/p1dNBsorUUhhf/K2LLmHMcCt+ZzJ3uedcuSTqi5UzA4BQuvoZSQrMd8AocpTnoAg1cyPN3TuDxD+4sB0ZfKOm1svAPi8G3sUWgz7xyK7tizuBA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601496059; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=uFGgdCjH6RaiKdPtx+4yFhh4lvq4ISq/FvhVyKEO4tE=; b=bYlJpLEzqfpovkgDC6C6N0mXnWdVEQQK36EZ9ivNP8ltNex4/CF6cbx9c5hSD0BJvCl7QlSRimgYvXPcO9P2vfdbLFeEY400sb2f+k2ZPnwwWdx/41Qx/M47q7fx7NXg6KyZlOtrgK2q5pENkmaf1gfHpWqKSeGOfRpXJQDW0A0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1601496059571527.3039101595184; Wed, 30 Sep 2020 13:00:59 -0700 (PDT) Received: from localhost ([::1]:58964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNiHa-0007cx-6f for importer@patchew.org; Wed, 30 Sep 2020 16:00:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNiFe-0006K3-Sc for qemu-devel@nongnu.org; Wed, 30 Sep 2020 15:58:58 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:35014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNiFc-00079O-J5 for qemu-devel@nongnu.org; Wed, 30 Sep 2020 15:58:58 -0400 Received: by mail-wr1-x430.google.com with SMTP id e16so3146365wrm.2 for ; Wed, 30 Sep 2020 12:58:56 -0700 (PDT) Received: from donizetti.redhat.com ([2001:b07:6468:f312:75e3:aaa7:77d6:f4e4]) by smtp.gmail.com with ESMTPSA id b64sm4824204wmh.13.2020.09.30.12.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 12:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uFGgdCjH6RaiKdPtx+4yFhh4lvq4ISq/FvhVyKEO4tE=; b=vgG/ol6dTmL1/Xow9khCxoOVDH+t29i4NagAyZVbOkork3a5W7LJbUlZVHDN3MW8Jd oQqw7VmRyeK8K+3xjW/K1w+NZ5b+guFq6RcgSyVueAKaHtO0vBzbo6ePekR5Pt0jsA2/ qFknH1Dlz4UuUNbLUYYqPou+yV/3LAlylYawTPM7lpZy+ei5Z0+x96KG78KkyNwecalB aPpdMeYCFTpW/xQxMB4htuMesaHDikiXt5cSu4gHo6firYeAlyITrZjvUyq3M/SiMja0 gEbbIquEo/oWR+J2bNI436ovT/nZpDyZrgxeilSsHbohuZ61573lgibWxjFqQN6SFxt2 v+3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=uFGgdCjH6RaiKdPtx+4yFhh4lvq4ISq/FvhVyKEO4tE=; b=IeHBScAb7lauJ1KhqMvfA1QTedsbqNX8rrTOy6+eSNVz0Ww/szbDNI2OkxoJQ8oN9t +LZd4z04Vl5/J5fDYTCUwuDZAXO4IcNfRY3RIOCrFfZAqD06AonRWD2jZowWt2GIYQYM GlzAOe3NUODxwTVeqmj9BktKpgNbCCjvspHXhxrtxfZN6pH+h+tBP8xUVhQ4q+Hd+J7D Ej/WdVIqpOaEizDVKPjd3q1NCtGGmBrgxqQf0RFys4kF6/KUJpjXpjqjXicxpob+8gsd 9II3w3VMhz7yg82Fq5sp5uFZei5o6K08oacxfID25azSqTb8TiHCk4Nqn+EU0pp986ri aG4A== X-Gm-Message-State: AOAM531XWDGrsLv2A3i64bFtGWyZkt6DfUA+kZRTVjSl9/wpC7KEvpdE RqIW76QZrf3aWMFOy16C5hEQKxMm7Mk= X-Google-Smtp-Source: ABdhPJwoK8PT+aQndCGAOiMWjMqRllG0MibzzQppa+AjaUmNF0IeMFislyZdMrpA1OQ7JQAITMshyw== X-Received: by 2002:adf:db4d:: with SMTP id f13mr4880621wrj.155.1601495933964; Wed, 30 Sep 2020 12:58:53 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 31/86] meson: extend libmpathpersist test for static linking Date: Wed, 30 Sep 2020 21:58:50 +0200 Message-Id: <20200930195850.278104-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200930195850.278104-1-pbonzini@redhat.com> References: <20200930195850.278104-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=paolo.bonzini@gmail.com; helo=mail-wr1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" libmultipath has a dependency on libdevmapper, so include it as well when static linking. It seems that the rabbit hole ends there. Signed-off-by: Paolo Bonzini --- meson.build | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index 8e9cd67235..5dd7728cc9 100644 --- a/meson.build +++ b/meson.build @@ -302,14 +302,25 @@ if targetos =3D=3D 'linux' and have_tools and not get= _option('mpath').disabled() mpath_lib_init(udev); return 0; }''' - libmultipath =3D cc.find_library('multipath', - required: get_option('mpath'), - static: enable_static) - libmpathpersist =3D cc.find_library('mpathpersist', - required: get_option('mpath'), - static: enable_static) - if libmultipath.found() and libmpathpersist.found() and libudev.found() - mpathlibs =3D [libmultipath, libmpathpersist, libudev] + mpathlibs =3D [libudev] + if enable_static + mpathlibs +=3D cc.find_library('devmapper', + required: get_option('mpath'), + static: enable_static) + endif + mpathlibs +=3D cc.find_library('multipath', + required: get_option('mpath'), + static: enable_static) + mpathlibs +=3D cc.find_library('mpathpersist', + required: get_option('mpath'), + static: enable_static) + foreach lib: mpathlibs + if not lib.found() + mpathlibs =3D [] + break + endif + endforeach + if mpathlibs.length() > 0 if cc.links(mpath_test_source_new, dependencies: mpathlibs) mpathpersist =3D declare_dependency(dependencies: mpathlibs) mpathpersist_new_api =3D true --=20 2.26.2