diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2023-07-27 04:10:46 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2023-07-27 04:10:46 +0000 |
commit | 87177389b75d93618faa9a64ec29c16b53f09129 (patch) | |
tree | e0ff560806ee9529445474d0cdb101b669a300a0 | |
parent | 6853d893c7fe65dfd7baaae9084467e312a62310 (diff) | |
download | src-87177389b75d93618faa9a64ec29c16b53f09129.tar.gz src-87177389b75d93618faa9a64ec29c16b53f09129.zip |
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
-rw-r--r-- | share/mk/bsd.lib.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index a58114af43c4..4e653a7bcb20 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -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=*} |