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
This commit is contained in:
@@ -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>__)
|
||||
|
||||
Reference in New Issue
Block a user