diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2014-12-16 20:53:13 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2014-12-16 20:53:13 +0000 |
commit | 6fab01a62e6d603ef848b439977071f8c9dcf6f2 (patch) | |
tree | d6e2c9032c4a9e01d5cc06d8f8749a89838c8b8d /libexec | |
parent | c0c9ca961961153e3a595d80c5fcdf346b3894ae (diff) |
Install a copy of ld.so into /sbin. Soon to be used in order to make "static"
PIE possible.
ok deraadt@ tedu@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index 796a5b4feb0..612d46a3cf6 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.50 2014/06/21 08:00:22 otto Exp $ +# $OpenBSD: Makefile,v 1.51 2014/12/16 20:53:12 pascal Exp $ SUBDIR=ldconfig ldd MAN= ld.so.1 @@ -51,6 +51,10 @@ $(PROG): $(test_prog) cp $(candidate) $@ .endif +afterinstall: + ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \ + ${.OBJDIR}/ld.so ${DESTDIR}/sbin/ld.so + .include <bsd.prog.mk> boot.o: boot.c |