summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2003-08-17 18:59:30 +0000
committergordon <gordon@FreeBSD.org>2003-08-17 18:59:30 +0000
commitbda0840bfc5338f04bdbf1335800a31ed902e31b (patch)
treee2748d606bdc2b84d40d5c8eada8eca40c67f86b /libexec
parentc0688ebf07f48d2ee1e9f15b8412796bc442a5ad (diff)
downloadFreeBSD-src-bda0840bfc5338f04bdbf1335800a31ed902e31b.zip
FreeBSD-src-bda0840bfc5338f04bdbf1335800a31ed902e31b.tar.gz
Don't forget to honor DESTDIR. Also switch over to using PROG instead of
the binary name directly.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile4
1 files changed, 2 insertions, 2 deletions
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}
OpenPOWER on IntegriCloud