Use CPP to preprocess version map files so we can conditionalize symbols.

This commit is contained in:
Daniel Eischen 2007-04-29 14:00:58 +00:00
parent 5b60daec90
commit 06097b1060
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169089

View File

@ -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>__)