diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index e5235a92a20..1b2910a7717 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -48,7 +48,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 ${DESTDIR}/usr/libexec/${PROG} + -chflags noschg ${DESTDIR}/${BINDIR}/${PROG} .PATH: ${.CURDIR}/${MACHINE_ARCH}