summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-11-29 19:30:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-11-29 19:30:57 +0000
commite55b14463c3d7a4c6538b31cc02e10160a05fa44 (patch)
tree824bb348220e81aed14143c423660ad0eab35a34 /libexec
parentb1fceaefb98309d4678f18ec66aa41c6601b91fe (diff)
As additional paranoia, make a copy of system ld.so into obj/ld.so.backup
We don't want to CLEANFILES this one. On occasion this comes in useful.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index f9dd281ff66..68207da87d6 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.78 2019/11/29 06:34:44 deraadt Exp $
+# $OpenBSD: Makefile,v 1.79 2019/11/29 19:30:56 deraadt Exp $
SUBDIR=ldconfig ldd
MAN= ld.so.1
@@ -91,6 +91,7 @@ $(PROG): $(test_prog) ${VERSION_SCRIPT} $(OBJS) ${LD_SCRIPT}
$(LD) -e _dl_start $(ELF_LDFLAGS) -o $(candidate) \
`echo ${OBJS} | tr " " "\n" | sort -R`
.endif
+ cp /usr/libexec/ld.so ld.so.backup
.ifdef CHECK_LDSO
${CHECK_LDSO} $(candidate)
.endif