From nobody Wed Aug 21 01:18:03 2024 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 4WpT3b2mScz5T2hV; Wed, 21 Aug 2024 01:18:03 +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 4WpT3b2DZXz56FP; Wed, 21 Aug 2024 01:18:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724203083; 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=+abcfaKqd01M7a9xWquBLwPQiIc6onDyqXSDNf7Xm4A=; b=wvNbgVCQmAIidt8k5xQMpuGEtmp0stziWXgziMUmkrnrN1DbpzPAkKg6jv2Fgc12/hJOmy DELD1TV6HYbii0f5eccyFZNBZJyI2ILXmCjIhYhIe45l66sfvsaYS4auVPbNARbjomh6eE 01iIKPPjcXr0iqEyFooe3lKrbM2e7UHuo9No6EffHv/XWd7owKmcf8dZVthe6i+JJBMToQ UgNp4YhVmJ754BCTGYnr1hmbLsNS405kEMXqLRQy3tacN3nMbLrBFmpa9Zc8gCI1W0Y2E3 Lp+ke5gfrIYRyfgQmZGBfMkn3VpII4F4e2rFuvbXTp+vanVmjMPC6mJiwTSuTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724203083; a=rsa-sha256; cv=none; b=BlZBIhRiKecBJYQxlHBdtkDpBjCOQ2iVvjpEFVmt7XSfrK4hpKvAxL/Z+oA/705eYvUEvj O9CK+XiNADZUFR02nxRhN3hWHvhuGG6cXwMVt1Tx/FmJE1vmTpijEmX6DQ2AarEnPAh/It TtsXb10N+5/H9A/BnSUMSvm8JE24GwGPm+IfNNOVOqMLOH8Hfhq0yu9LdCWQB/e811wPKZ 4/EbpfOV5jAa8fCN/qqTgRa8fw0ZQP21uUwj/e3P5L8tSNEG/aCDRanrcJuwGCsxCzGOAc XxDhtcx9xxEGJv3/93rhnwRJo8dZut81jLj1/TnGngVFgdUKH/PtezZtAb21cw== 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=1724203083; 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=+abcfaKqd01M7a9xWquBLwPQiIc6onDyqXSDNf7Xm4A=; b=opWnfAlSGzUMHj9IuATnTGF7z/o6OrqZs+XfVJVE1NmgbJ46w6BYskTl2lyfHlo2SdQXA4 eKDVp8bVAQLzDCOaXIKMbsCCeOESMWz0/szmrcE9E9bA8YX/+ULkpPcKrrI3mO3P/GYAXg gAE6+DGk5Y8YaEcI/4hBbSD5xV7J9Hc7Tme5VcHnazakRPiS6EecvNwgkwL/mFhJfpl7Dd WFvKm34w2pn/DRWcpUJy0D1l+4jR0JcN84hxyAaHZVjMBICOMB/VJh/YQ4Sr+SYJy2T+Gs iOviWqs4wRD/Km5uUpiq6AfNX+/acYMFKGtDVOt0EXkjvECxMWGLFSjFdDpFCA== 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 4WpT3b1jtHzP0t; Wed, 21 Aug 2024 01:18:03 +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 47L1I3nf028123; Wed, 21 Aug 2024 01:18:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47L1I3I5028120; Wed, 21 Aug 2024 01:18:03 GMT (envelope-from git) Date: Wed, 21 Aug 2024 01:18:03 GMT Message-Id: <202408210118.47L1I3I5028120@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: aa0bc761d245 - main - bsd.symver.mk: pass $CFLAGS to $CPP invocation 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: aa0bc761d245d2ea1e4b7a0343715cc76859d5da Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=aa0bc761d245d2ea1e4b7a0343715cc76859d5da commit aa0bc761d245d2ea1e4b7a0343715cc76859d5da Author: Ed Maste AuthorDate: 2024-05-24 16:15:17 +0000 Commit: Ed Maste CommitDate: 2024-08-21 01:17:52 +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 --- 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 a1c6e62fba76..d0b63206d8fe 100644 --- a/share/mk/bsd.symver.mk +++ b/share/mk/bsd.symver.mk @@ -44,7 +44,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(____)