From a857d9305c202826dbbec4b8dc46d3374f09382b Mon Sep 17 00:00:00 2001 From: Gordon Tetlow Date: Sun, 17 Aug 2003 18:50:56 +0000 Subject: [PATCH] Don't forget to chflags noschg the existing binary so we can symlink over it safely. Pointed out by: yosimoto@waishi.jp --- libexec/rtld-elf/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 7a16426b1612..4d3b9683b678 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -52,6 +52,11 @@ LDADD= -lc_pic dyn_hack.so: ${CC} -shared -nostdlib -o dyn_hack.so -x c /dev/null +# 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 + .PATH: ${.CURDIR}/${MACHINE_ARCH} .include