From nobody Fri Feb 16 14:51:28 2024 X-Original-To: dev-commits-src-all@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 4TbvyS5hSbz51hs7; Fri, 16 Feb 2024 14:51:28 +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 4TbvyS5Dt5z4mK1; Fri, 16 Feb 2024 14:51:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708095088; 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=NgyBjgMe7AO0iyIUhznVjgIgPdxqNalo/9Di6SHoJnU=; b=Dd/ydv0Rr7ONP2XGepNDxd2JnJnuWLySeOTM2ts6UU1V+apeF8qaK/5alDxzKn80cTpexr u9Lqt3QMjJ9DtQ+wklite9LP8wL6w+tsymUa0zcjViZCUMlhgIJWuW6vMgSvvgMaKpwjZG 5b1mVyjMncZIM4Z6hS4CSa86tqfbQ9bmv5HBTVC90daQTDtd7qBIpymd+/fMobGr2396qg Ab23sgBNjMK6KQH6lVQ2KhFWp8wCPx/zLDXbYH1g/FvrN6ue010+E+ey0C6wWmMKF8XCtz Hkcf/HuAfYHWYYtSQ6RVMwUzZtg2LdkqE2Ht+FDn1j25e5omBUcR5nzleBpGxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708095088; 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=NgyBjgMe7AO0iyIUhznVjgIgPdxqNalo/9Di6SHoJnU=; b=kzOfdCjbQ6ygMevDvw2GXkDSunftJhfwjeoZYjgFPyOkJqesvYuTSuGf3jllIRyHdEqYPV xQdn3gLNrh/oBITDGhWXwMuERKxdAazm7pHgfkOLXRPxmwxrwkb/4lMxgLGWPe2RBZbE0/ 79CeJmCjJQgi7ydretFKtVArjJ4wpwJoyNqhNtW8kuDQClJHYYvVBUF0YAYQ4UI/WptF9V 84FmEWQmUy1j+vVaHbQPCybkw5T0XO3T90Ix3TYh+4gY4zHjzcK8c513qw/pMFtFGpkeJN TIu4f8YK5UPV+llNvRDkB2T59/Iwgljcywj9TJzlsG+nS7NIGaZyncc4ywI9Hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708095088; a=rsa-sha256; cv=none; b=NVCfJSphvui99//5PUgDJA/XDciWLSrSbiPI1kjWfqPqiTQ72rKR2wbanLnwqscGu1Rg4v 58BF5ObG2cTrQEXG9THHf7LyRhZYFTqYUgcEnjbZoOgcgzc/l9mSg2HP11flE+NGx45lLf 8nn11GCX3GpUnDcnPJJ/PXyBwAf4i+BKZkq995enRaxxmS8ynX83Su2zxjW4t7pyAhOKf1 ZhWNQPApeAVldWoh5RTlt4xXbM7qiRwSXjl/vDepO/06z4OcNRPJufI8jCQFnjOA71yrZy 1FcJYzZgNOIWSiF8PEjyFsv0fB2bgPw8bXMmIMJeDodr3Bl80/9Uh0jOSq7ZCw== 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 4TbvyS4KXTzT8V; Fri, 16 Feb 2024 14:51:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GEpSni016171; Fri, 16 Feb 2024 14:51:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GEpSwE016168; Fri, 16 Feb 2024 14:51:28 GMT (envelope-from git) Date: Fri, 16 Feb 2024 14:51:28 GMT Message-Id: <202402161451.41GEpSwE016168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 23d4d0fcc1be - main - pmc: Fix some problems with the makefile List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 commit 23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 Author: Mark Johnston AuthorDate: 2024-02-15 18:17:37 +0000 Commit: Mark Johnston CommitDate: 2024-02-16 14:50:43 +0000 pmc: Fix some problems with the makefile - For some reason we don't build it as a PIE, but I don't have any problems doing so with either clang or gcc. - There is no apparent need to override WARNS, so don't. - Some building with -O0, presumably that's left over from debugging. MFC after: 1 week Reviewed by: imp, brooks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D43923 --- usr.sbin/pmc/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usr.sbin/pmc/Makefile b/usr.sbin/pmc/Makefile index dda72c85a106..3f73dd398958 100644 --- a/usr.sbin/pmc/Makefile +++ b/usr.sbin/pmc/Makefile @@ -1,18 +1,11 @@ -# -# - .include + PROG_CXX= pmc MAN= -WARNS?= 3 -CXXFLAGS+= -O0 CXXSTD= c++14 CWARNFLAGS.gcc+= -Wno-redundant-decls CFLAGS+= -I${SRCTOP}/lib/libpmcstat -# Does not link when built position-independent. -MK_PIE=no - LIBADD= pmc m pmcstat elf SRCS= pmc.c pmc_util.c cmd_pmc_stat.c \