From nobody Thu Mar 23 16:32:10 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pj9py6M8hz41XKp; Thu, 23 Mar 2023 16:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pj9py5fMXz3Gct; Thu, 23 Mar 2023 16:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679589130; h=from:from: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; bh=VAc1z8kfUUfdmHXKW6stwZr+vELh2KnPRKYQKGstsD4=; b=PvfTvo3ZG6PyaSm3zrB1mqK/HbSbL57ur7DYAUcU2Nrg0SKsc+6BOzFp4KWr3sLb/Gtjk2 kZeoUcTzsgijXAWubpmX8SzB9VEHyja0CmFbYy5TK0MSOGX4D5zgkcl+oMsmR4nD9O+XXr g54SUmiZ0Xl7IV0HCZO5u/euwnWKI7/bGKGZ+9iCIkkQI/ds8KbuffXrJhvH7YvYRduxl0 DD5T6g2SixhHGRbMcv+FVrdQqW8JBgzuR1KvKJD21RQ/fLCKKVtIOQdgr9oGTp7StZsuMa ur2jk7cwqFYB+dgmP1BK0hj/uSaA9lmabNQFFg6pyjba46SVaaNUbuaJ4AeZxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679589130; h=from:from: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; bh=VAc1z8kfUUfdmHXKW6stwZr+vELh2KnPRKYQKGstsD4=; b=Mf5BWpNrDSY0lP8PzSY1Ef2c26DYicRcmAGa8e5CJkxYZXJBlpH9DhbnCkXqvUECCFXoTa Al7cWxI7BjW3yVg12BRVctKoWvl81ftGG6aoEIkJQrIKUosGIfi/t1EuCt7lWgXsH2hNWl ECzPtS6hCDaqWY5mt4g9vRewlKHKcF9K8rMQ+4g9XGaOQPJUJpuMLUkRWVz33vjlr3vYb5 u/k9bsSphfR8UjecUtVmPNO+qtvrI9ue37M3ZXolUFtz7lVLhEEPt1GHWN2ztfQBZcdjWt yHf/Qz/u3vASK12qj3zV7ht/Lakc0xJvVfTiuqEjZGgG5OgvUUvyv3Fa7/tAow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679589130; a=rsa-sha256; cv=none; b=cyvb6yPzrGpWUTA4xXobPpverKrgsWG2iB8JnJv6khjY2pCPI2IsQZTeJTLFVQ86U4D1Aw g3fgvNLwzCbWk9wnhDGHE+1CxIxXNNt65QxuhwoPsaSWiN7sBJjHcuJW6Y5udIXlUQGAxG NHlga1ImwyqQde54fe54obhGO53Q2az5jiAwbOa4JSy0JqkmZ9LNaZBh8SqKtqCccvnf59 GwEsg3VCRGi61M8LJfBPaBN5tEQ7ctFb8BI8M9qMjcokrEX7t93sbPYT2hV9V0kK7oCkkf VF3bj+3LWwODjR8+tEkUHRlmevcEzIK4tF5sV0BRquWTadq0GxYxBCmvhA+8WQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pj9py4k2Tzjfl; Thu, 23 Mar 2023 16:32:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32NGWAUb091790; Thu, 23 Mar 2023 16:32:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32NGWAWj091789; Thu, 23 Mar 2023 16:32:10 GMT (envelope-from git) Date: Thu, 23 Mar 2023 16:32:10 GMT Message-Id: <202303231632.32NGWAWj091789@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: c6b3f47fedd3 - main - libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c6b3f47fedd3f94f74cc4f7c40761b1d0e777f17 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c6b3f47fedd3f94f74cc4f7c40761b1d0e777f17 commit c6b3f47fedd3f94f74cc4f7c40761b1d0e777f17 Author: John Baldwin AuthorDate: 2023-03-23 16:31:29 +0000 Commit: John Baldwin CommitDate: 2023-03-23 16:31:58 +0000 libpmc: Use LIB_CXX instead of explicit LDADD to link a C++ library. This uses the C++ compiler as the linker instead of the C compiler letting the compiler driver pick the right libraries. This is a no-op on main and stable/13 but matters for stable/12 where the current logic breaks for external GCC since it tries to use a non-existent libstdc++. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39197 --- lib/libpmc/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile index 81e43b696841..01cb562c3fcd 100644 --- a/lib/libpmc/Makefile +++ b/lib/libpmc/Makefile @@ -1,12 +1,11 @@ # $FreeBSD$ -LIB= pmc +LIB_CXX= pmc SRCS= libpmc.c pmclog.c libpmc_pmu_util.c libpmc_json.cc INCS= pmc.h pmclog.h pmcformat.h CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat -LDADD+= -lc++ .if ${MACHINE_CPUARCH} == "aarch64" EVENT_ARCH="arm64"