bsd.lib.mk: Automatically generate libcompat TAGS
Note that the pattern for matching is made slightly more specific, so as to permit libcompats where one is a prefix of another (e.g. CheriBSD has lib64 and lib64c). Reviewed by: brooks, jhb, emaste Differential Revision: https://reviews.freebsd.org/D41185
This commit is contained in:
parent
6853d893c7
commit
87177389b7
@ -5,6 +5,7 @@
|
||||
.include <bsd.init.mk>
|
||||
.include <bsd.compiler.mk>
|
||||
.include <bsd.linker.mk>
|
||||
.include <bsd.compat.pre.mk>
|
||||
|
||||
__<bsd.lib.mk>__:
|
||||
|
||||
@ -64,9 +65,11 @@ CTFFLAGS+= -g
|
||||
STRIP?= -s
|
||||
.endif
|
||||
|
||||
.if ${SHLIBDIR:M*lib32*}
|
||||
TAGS+= lib32
|
||||
.for _libcompat in ${_ALL_libcompats}
|
||||
.if ${SHLIBDIR:M*/lib${_libcompat}} || ${SHLIBDIR:M*/lib${_libcompat}/*}
|
||||
TAGS+= lib${_libcompat}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if defined(NO_ROOT)
|
||||
.if !defined(TAGS) || ! ${TAGS:Mpackage=*}
|
||||
|
Loading…
Reference in New Issue
Block a user