From nobody Sun Feb 8 20:53:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894749; cv=none; d=zohomail.com; s=zohoarc; b=CqNzyP+PZiCaf6BTCJb2gOr7JL6kkf7iCA5sPFuI/A36NNnOGFhh6ywcuo4OkJa0/ZPoBvKFcJpfwth7wevbkuDWOWOs4KFRo607/7MolqtZ5FELb5lJgmb3aFGpVLZAtL9kOdEUBYM2EHokE6td4v82uFqGWI/QAG2Ez10MAoM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894749; h=Content-Type:Content-Transfer-Encoding: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=87C/EOdpA6zgLTA6CD2OxT6KzbgPPF8FwHRKaLU7NCY=; b=X1Xk2lP850AnBiDq1FwKKWYJ5c/0q22ibX2f/X/fKV4BEzWVZFWgHERbz6cOc3DDA+inb3qi2/QHmopX2rD/yKXU40A7kblJy4k2Lwnm9uYIXfoRQkaoJ2ofpPiNHf56mg+hJVg1rCk8DAavNzBV0YpAIs7kECw7bH5hfoVfjPk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594894749409144.2572491522277; Thu, 16 Jul 2020 03:19:09 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-MKHIo0tMPKKT602gynGLLg-1; Thu, 16 Jul 2020 06:14:13 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E4B6E1009616; Thu, 16 Jul 2020 10:14:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C270570108; Thu, 16 Jul 2020 10:14:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 8E994181D0AB; Thu, 16 Jul 2020 10:14:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA6VWk019656 for ; Thu, 16 Jul 2020 06:06:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 68E1E2B6DB; Thu, 16 Jul 2020 10:06:31 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id D8E3B2DE6B for ; Thu, 16 Jul 2020 10:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894748; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=87C/EOdpA6zgLTA6CD2OxT6KzbgPPF8FwHRKaLU7NCY=; b=EJ23w73MucfQmXFM/cnVBQrGlW3OnXM4dDLWI8CFzwITZ+JfFt59VT+ToGNA0EIYCATSzi +aK2+i15aHhSaUWJmHNB/wX+y+W3i0H0kTbyrwdtvA6kM/5L3l5TEeuRAncSIDm5XXrzW8 HxKlSQXS4yUGd43GKRG1Z+a9RwNiX0c= X-MC-Unique: MKHIo0tMPKKT602gynGLLg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 272/351] meson: tools: build libnss_libvirt.so shared library Date: Thu, 16 Jul 2020 11:58:28 +0200 Message-Id: <46ed6fd18f9486217eca39dce7d4566a3d8871b6.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- tools/Makefile.am | 18 ------------------ tools/nss/meson.build | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/tools/Makefile.am b/tools/Makefile.am index b1388280fef..d33e5a20885 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -50,23 +50,6 @@ wireshark/src/libvirt/protocol.h: wireshark/util/genxdrs= tub.pl \ endif WITH_WIRESHARK_DISSECTOR =20 if WITH_NSS -nss_libnss_libvirt_la_SOURCES =3D -nss_libnss_libvirt_la_LDFLAGS =3D \ - $(VERSION_SCRIPT_FLAGS)$(LIBVIRT_NSS_SYMBOL_FILE) \ - $(AM_LDFLAGS) \ - -module \ - -export-dynamic \ - -avoid-version \ - -shared \ - -shrext .so.$(NSS_SO_VER) - -nss_libnss_libvirt_la_LIBADD =3D \ - nss/libnss_libvirt_impl.la - -nss_libnss_libvirt_la_DEPENDENCIES =3D \ - $(nss_libnss_libvirt_la_LIBADD) \ - $(LIBVIRT_NSS_SYMBOL_FILE) - nss_libnss_libvirt_guest_la_SOURCES =3D nss_libnss_libvirt_guest_la_LDFLAGS =3D \ $(VERSION_SCRIPT_FLAGS)$(LIBVIRT_GUEST_NSS_SYMBOL_FILE) \ @@ -85,7 +68,6 @@ nss_libnss_libvirt_guest_la_DEPENDENCIES =3D \ $(LIBVIRT_GUEST_NSS_SYMBOL_FILE) =20 lib_LTLIBRARIES =3D \ - nss/libnss_libvirt.la \ nss/libnss_libvirt_guest.la =20 endif WITH_NSS diff --git a/tools/nss/meson.build b/tools/nss/meson.build index ef75ffe0010..cfdcc1fe774 100644 --- a/tools/nss/meson.build +++ b/tools/nss/meson.build @@ -48,3 +48,23 @@ nss_libvirt_guest_impl =3D static_library( yajl_dep, ], ) + +nss_libvirt_syms =3D '@0@@1@'.format( + version_script_flags, + meson.current_source_dir() / nss_sym_file, +) + +nss_libvirt_lib =3D shared_module( + 'nss_libvirt', + name_prefix: nss_prefix, + name_suffix: 'so.@0@'.format(nss_so_ver), + link_args: [ + nss_libvirt_syms, + libvirt_export_dynamic, + ], + link_whole: [ + nss_libvirt_impl, + ], + install: true, + install_dir: libdir, +) --=20 2.26.2