Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp431081rdb; Mon, 29 Jan 2024 06:48:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5ik99eEpi3rTEmmTqquGzZJwxQfkXMo3giBuj5JpT3xeUXIXWBS9ArpA+rvGagILaJBSG X-Received: by 2002:a25:c305:0:b0:dc2:5679:ebab with SMTP id t5-20020a25c305000000b00dc25679ebabmr2826406ybf.110.1706539692334; Mon, 29 Jan 2024 06:48:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706539692; cv=pass; d=google.com; s=arc-20160816; b=Fsp3oTVlvErefDpnXjLGdTjp9iL6DQrlATd4WcEn0BrvaL7XjQYHzzkiVLxJ2yy4LA lNxADSKb1+UFL7GopudJXVIvte7YF9cAn1GorPBNvuM3cn2CM45yc8RYfkkiVKwz4jgk HKZl27VXyjBmhqzdGGzUUu+rLIo6NgWEq3bZSGrla2iYl1qSIy9Gsw+8dA3kiJMyhSjl COdSPbw4rN3v+B4p+AhJXnuTPhvvXis2Px4PYykSa19cCwtZpYbr5EdAnVpn3bOQt1N+ rzuWkvqkbFDcB1+zJNhFfnRALaMHr6aVHz69YypSV+CeievdQxzhzHJg46AGHtCR3+5C I2tQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=YorLVDplWBfU9XqALGfm61Th7TgKgGCscxE6/MtKQJ8=; fh=wm3knQjNzlzhSYO3l6/R1dJNTO7aXLaAzT309a/t7Bw=; b=lG+0mqDIceX4D9s9sxbtCqtTDwFHxONDmXPzUZpHIK3diyfnyp7BbtySQN89fk4hyj z+3Wz3P96OWH/7Ci25RolgvWwy8kLdnyeTHutV9I8aHRhlpIhB90vshrvD2lRO7GV+rT c+3FgvC4WvR/VIFMmI9u0Ymm+iYM8VqEc89AMbMQmZIZgaW6ivPcKNDRkmYdtPSIcjpA b1M+n9N2mkP6fEJSbuUuAinG01nG65PWHqDkm1hgjZDQ0MdQVvpFdTzkkiGeR+92QIlS zLLemzM+ETpTNoyDea+kNk7vzDvLyedGREkBR+zSGgrsf3+RQB8MMnyEXGIJT/n4JVAm 69qQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gNITHlbG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a63-20020a639042000000b005d8b991929bsi3756627pge.522.2024.01.29.06.48.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:48:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gNITHlbG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A58D282704 for ; Mon, 29 Jan 2024 14:44:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892C6153508; Mon, 29 Jan 2024 14:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gNITHlbG" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83019152DFC for ; Mon, 29 Jan 2024 14:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539457; cv=none; b=ljos/ljdAsnZcXoj+NxB6TfxYUgVzMRuSQFAHleue92gcYLDinFyhb4tpS13etv7c532moJeOGyrheMZvDT98KiIdlKGnOSFkPosSryc/K1m+F/UhfPh+pKkD98wBpRjVgLLZjZuyLK/gTd5TOjtGzwF3PgudDJHgHJk/G+RvsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539457; c=relaxed/simple; bh=Qzw6fgFGlrKG70QEp7wKH52CmWymYEBdfMM/XdHZ8hY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t6KLB8h7mVtrUukETh6pXefQC+K2Spn9BLOCQ2Yc1071bm/aARvcjz2QKqCnqCBb3CW4dxnerOzvizHGNKIzKlzci9Ft22z6pwTM3jKPOpZy8t5Q0cd0UK+eIy6GIp10v9BsuWybnCQR3q+u2V2GyY+lyq0zYYsvJnr+8+iIu3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gNITHlbG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 109D5C433B2; Mon, 29 Jan 2024 14:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706539457; bh=Qzw6fgFGlrKG70QEp7wKH52CmWymYEBdfMM/XdHZ8hY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gNITHlbGiTdCPrrOk9yVI5olgTZjL4tXhCtcwqSQ8jVs/JsuXnQ5vwzUFqIPdrPLH pYMLZqrTBVQWmH9dJKRe9AHnGMy2MfWUmfTpQhsIBaKNyTgVJ5jdF5vJaTVc5BOumO 7uGJ4x/Zt1S6IPgKJKboQKYAlNuekYmSo1bxWq2doJEYn7gbf34du1K2/JeqDZS2Ew 9Axh0Le92tEjY1sU3Q3EE08d/m3s/BmbaIzjx7jd2XTQj6ekeGx46Wpr/15uG0WTdN B81uX9ypYnc5v1H/bbfpRWcqpJP0qGrrYYwtTSLupFj17DmjTvJyBt5vLCHMEmFJw7 ko4ES4oQUtLMQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F27A6C47DB3; Mon, 29 Jan 2024 14:44:16 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Mon, 29 Jan 2024 14:44:20 +0000 Subject: [PATCH BlueZ v4 6/8] bluetoothd: don't export internal API Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240129-rm-ext-plugins-v4-6-bfd1e08c7f99@gmail.com> References: <20240129-rm-ext-plugins-v4-0-bfd1e08c7f99@gmail.com> In-Reply-To: <20240129-rm-ext-plugins-v4-0-bfd1e08c7f99@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Emil Velikov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706539455; l=1054; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=IzZa7BlZN0VGepZt+klnK6SKKS7pzNjz9SN5DmTUpUs=; b=FkuQqYebrVC3b9/ftLnlmF9PMnQDHOMAKSIc87QoJM2RED78ClpGc+9WOTf1J3hgEvSBTs2FN l42ytNeTFhJBhAonQLcyM3MPlHnqgUP+OB2hBhw0ZzwHJbz4WKooeYZ X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Emil Velikov ... when building without external plugins. --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2d5650ced..2b1b9acdf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -289,7 +289,6 @@ pkglibexec_PROGRAMS += src/bluetoothd src_bluetoothd_SOURCES = $(builtin_sources) \ $(attrib_sources) $(btio_sources) \ - src/bluetooth.ver \ src/main.c src/log.h src/log.c \ src/backtrace.h src/backtrace.c \ src/rfkill.c src/btd.h src/sdpd.h \ @@ -321,8 +320,12 @@ src_bluetoothd_LDADD = lib/libbluetooth-internal.la \ src/libshared-glib.la \ $(BACKTRACE_LIBS) $(GLIB_LIBS) $(DBUS_LIBS) -ldl -lrt \ $(builtin_ldadd) + +if EXTERNAL_PLUGINS +src_bluetoothd_SOURCES += src/bluetooth.ver src_bluetoothd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic \ -Wl,--version-script=$(srcdir)/src/bluetooth.ver +endif src_bluetoothd_CPPFLAGS = $(AM_CPPFLAGS) -DBLUETOOTH_PLUGIN_BUILTIN \ -DPLUGINDIR=\""$(build_plugindir)"\" \ -- 2.43.0