diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index e3750cc7dfdd..00fcdcd228eb 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -52,5 +52,6 @@ beforeinstall: .if exists(${DESTDIR}${BINDIR}/${PROG}.old) -chflags noschg ${DESTDIR}${BINDIR}/${PROG}.old .endif - cp -p ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.old + ${INSTALL} -C -p ${DESTDIR}${BINDIR}/${PROG} \ + ${DESTDIR}${BINDIR}/${PROG}.old .endif