From nobody Mon Sep 09 22:58:01 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 4X2j0p3YVDz5Vs0x; Mon, 09 Sep 2024 22:58:02 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X2j0p2NgSz4Fbs; Mon, 9 Sep 2024 22:58:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725922682; 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=vzVCpjqnt10dMuFVmlqgPsJf6z4blAwt9rjr9Xm4j1o=; b=iVZBVn7DIv6C2xRmO7dDeLlqh7ToYHWBmzTNI2Y3MAuJhuOKLuM9rukFDQV4tacIe+Rkfl KBoQtJ9mFSm8mN51bo6c8vzWfZoaoKoZp8kFKA2PAlfrjLzOIeGPPnu8xOk+McwMA1yXIB nWvSuvkUwoWytbnNseF+Ri7pdVA/cHX747wLnBRB/K4DgCu0m/IKv9f/MrwtWFbVJnByTx xHKKnExw5pl9TuUTJ+1LC6xtnC+sRdtdExazUomyEbYbNtYAsdi/S2dYYw4uiE24lMJSnA fUiFvmpfAfDbA61IkXhu/5p+qkbT5JHda1K5lfIGHg+lT7yFSR90sFO4efxd/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725922682; a=rsa-sha256; cv=none; b=SPZCsuXoZA3/d4jNc6H9esf9NbjiJupHQb7+V8ZzICBk3pQ0ESJClVa+yrYOPpV7/RuvIt OvzpcEZ/9/PU2O05pLZcZCsCijBUTvVIUKmwy4ehbbCDZmszoxSQR331aClc2ICNQYihh0 a3QahG/pHM9V+pdoAHZ6+PM6jrxcCCDrN7u2Db5cg8YetxYkBmCF1/3PnYUCrGfIDJhBAJ lPlqy6vQfLcduVo3nBEpI059V5Q08BXCIn0fCNm0aRmnBntNUQVu4RLg45LcbSCfqrxC/8 rUMuQYvNsGTxE488uyJ0/xkRUQP8C5NJx84eOdTL0isuQkbDSiFE5fzf7mFOYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725922682; 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=vzVCpjqnt10dMuFVmlqgPsJf6z4blAwt9rjr9Xm4j1o=; b=O1uxL7WWuOfNqdok7I/hSWHw1ZcGfHR1p5syj059EOEZiMp6y70QDqEzOPz1gAqgzp79+9 RX0BnP7cRODE+rzsuVHhxGIxR9lWxLvqOn72Vl+w4K9Zi8wOqfwkULQP0q22APLDADNSaB jcT/2XCm2gKKxn5CSvp6kjcn2tnteIFQHRaHfFc5ktUyghzZhjHsnm5Zj4G0p5bJs3oIWU 4O8xBvUUxkr/C16NHecHQnYQ1B4JeNAMP9usS94ljtuLF6mLxQVlFsqI47NxT0cHeWNCJb HjpseNqyyfFs6dCvF/4jC0RrwzxTbh5lupAwjZr2QNWR/Qw4wg344ev6ghhjTw== 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 4X2j0p0xwgzMqw; Mon, 9 Sep 2024 22:58:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 489Mw1J7042068; Mon, 9 Sep 2024 22:58:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 489Mw148042065; Mon, 9 Sep 2024 22:58:01 GMT (envelope-from git) Date: Mon, 9 Sep 2024 22:58:01 GMT Message-Id: <202409092258.489Mw148042065@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 41e6582ab6a7 - stable/13 - bsd.symver.mk: pass $CFLAGS to $CPP invocation 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 41e6582ab6a7bc49f31b97ebb522a00d75b51c18 Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=41e6582ab6a7bc49f31b97ebb522a00d75b51c18 commit 41e6582ab6a7bc49f31b97ebb522a00d75b51c18 Author: Ed Maste AuthorDate: 2024-05-24 16:15:17 +0000 Commit: Ed Maste CommitDate: 2024-09-09 20:09:36 +0000 bsd.symver.mk: pass $CFLAGS to $CPP invocation This allows us to support symbols optionally available based on configuration, not just on compiler built-in #defines. Reviewed by: brooks, jrtc27 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45346 (cherry picked from commit aa0bc761d245d2ea1e4b7a0343715cc76859d5da) (cherry picked from commit e998c9f1bb39301a3408a47004ee6747698a9c8d) --- share/mk/bsd.symver.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.symver.mk b/share/mk/bsd.symver.mk index aa2fee2c649f..f20442f0a25f 100644 --- a/share/mk/bsd.symver.mk +++ b/share/mk/bsd.symver.mk @@ -40,7 +40,7 @@ _vgen= ${path}/${VERSION_GEN} # Run the symbol maps through the C preprocessor before passing # them to the symbol version generator. ${VERSION_MAP}: ${VERSION_DEF} ${_vgen} ${SYMBOL_MAPS} - cat ${SYMBOL_MAPS} | ${CPP} - - \ + cat ${SYMBOL_MAPS} | ${CPP} ${CFLAGS} - - \ | awk -v vfile=${VERSION_DEF} -f ${_vgen} > ${.TARGET} .endif # !empty(VERSION_DEF) && !empty(SYMBOL_MAPS) .endif # !target(____)