aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/Makefile
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2023-07-27 04:10:45 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2023-07-27 04:10:45 +0000
commit195e50541eca73b8d40bed4223b87ba48cfed27d (patch)
tree37ec94fb89b90e64ffc077116a27768b2a38c40a /libexec/rtld-elf/Makefile
parent949199a212ec714eab77ee2dc9b95252eb32ca2c (diff)
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r--libexec/rtld-elf/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index a132c756723f..5a31ca674a53 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -14,13 +14,17 @@ MK_ASAN= no
MK_SSP= no
MK_UBSAN= no
+.include <bsd.compat.pre.mk>
+
.if !defined(NEED_COMPAT)
CONFS= libmap.conf
.endif
PROG?= ld-elf.so.1
-.if (${PROG:M*ld-elf32*} != "")
-TAGS+= lib32
+.for _libcompat in ${_ALL_libcompats}
+.if ${PROG:M*ld-elf${_libcompat}[-.]*} != ""
+TAGS+= lib${_libcompat}
.endif
+.endfor
SRCS= \
crtbrand.S \
rtld_start.S \