summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2007-04-29 14:00:58 +0000
committerdeischen <deischen@FreeBSD.org>2007-04-29 14:00:58 +0000
commit2c6a6b87184ac80e87898b2de68f582ecca0128c (patch)
treebe9ca4c8e6cd9fa855338e6dd893cb6e71bc1b46 /share/mk
parent9c6390074205910f1eaf39e6434c0e40f8c03b6c (diff)
downloadFreeBSD-src-2c6a6b87184ac80e87898b2de68f582ecca0128c.zip
FreeBSD-src-2c6a6b87184ac80e87898b2de68f582ecca0128c.tar.gz
Use CPP to preprocess version map files so we can conditionalize symbols.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.symver.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.symver.mk b/share/mk/bsd.symver.mk
index 40c51a4..3debc69 100644
--- a/share/mk/bsd.symver.mk
+++ b/share/mk/bsd.symver.mk
@@ -35,8 +35,10 @@ _vgen= ${path}/${VERSION_GEN}
.endif
.endfor
+# Run the symbol maps through the C preprocessor before passing
+# them to the symbol version generator.
${VERSION_MAP}: ${VERSION_DEF} ${_vgen} ${SYMBOL_MAPS}
- awk -v vfile=${VERSION_DEF} -f ${_vgen} ${SYMBOL_MAPS} \
- > ${.TARGET}
+ cat ${SYMBOL_MAPS} | ${CPP} - - \
+ | awk -v vfile=${VERSION_DEF} -f ${_vgen} > ${.TARGET}
.endif # !empty(VERSION_DEF) && !empty(SYMBOL_MAPS)
.endif # !target(__<bsd.symver.mk>__)
OpenPOWER on IntegriCloud