From bda0840bfc5338f04bdbf1335800a31ed902e31b Mon Sep 17 00:00:00 2001 From: gordon Date: Sun, 17 Aug 2003 18:59:30 +0000 Subject: Don't forget to honor DESTDIR. Also switch over to using PROG instead of the binary name directly. --- libexec/rtld-elf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec') diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 4d3b968..bd33bd2 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -10,7 +10,7 @@ CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR} LDFLAGS+= -nostdlib -e .rtld_start INSTALLFLAGS= -fschg -C -b BINDIR= /libexec -SYMLINKS= ${BINDIR}/ld-elf.so.1 /usr/libexec/ld-elf.so.1 +SYMLINKS= ${BINDIR}/ld-elf.so.1 /usr/libexec/${PROG} MLINKS= rtld.1 ld-elf.so.1.1 \ rtld.1 ld.so.1 @@ -55,7 +55,7 @@ dyn_hack.so: # Since moving rtld-elf to /libexec, we need to create a symlink. # Fixup the existing binary that's there so we can symlink over it. beforeinstall: - -chflags noschg /usr/libexec/ld-elf.so.1 + -chflags noschg ${DESTDIR}/usr/libexec/${PROG} .PATH: ${.CURDIR}/${MACHINE_ARCH} -- cgit v1.1