From: pascal Date: Tue, 16 Dec 2014 20:53:12 +0000 (+0000) Subject: Install a copy of ld.so into /sbin. Soon to be used in order to make "static" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2440f9f02f826f2d3ce9dddca58d229d1e90e0bd;p=openbsd Install a copy of ld.so into /sbin. Soon to be used in order to make "static" PIE possible. ok deraadt@ tedu@ --- 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 boot.o: boot.c