git: 41e6582ab6a7 - stable/13 - bsd.symver.mk: pass $CFLAGS to $CPP invocation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Sep 2024 22:58:01 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=41e6582ab6a7bc49f31b97ebb522a00d75b51c18 commit 41e6582ab6a7bc49f31b97ebb522a00d75b51c18 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2024-05-24 16:15:17 +0000 Commit: Ed Maste <emaste@FreeBSD.org> 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(__<bsd.symver.mk>__)