aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-05-24 16:15:17 +0000
committerEd Maste <emaste@FreeBSD.org>2024-09-05 14:50:10 +0000
commite998c9f1bb39301a3408a47004ee6747698a9c8d (patch)
tree7c1e3a43ca38830a6e8be18f9700fda19788912b
parent7da246dc4ffeba38ad723a1cb72a19511292c840 (diff)
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)
-rw-r--r--share/mk/bsd.symver.mk2
1 files changed, 1 insertions, 1 deletions
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(__<bsd.symver.mk>__)