diff options
author | gordon <gordon@FreeBSD.org> | 2003-08-17 18:50:56 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2003-08-17 18:50:56 +0000 |
commit | 649bbcf5e840aa8ce8d96a5acc8864d821fcef55 (patch) | |
tree | 7d615d8accc9a300ecfef087a559736178c909b2 /libexec | |
parent | 6cbfc845049551247d14475b66930ab1b91ffe57 (diff) | |
download | FreeBSD-src-649bbcf5e840aa8ce8d96a5acc8864d821fcef55.zip FreeBSD-src-649bbcf5e840aa8ce8d96a5acc8864d821fcef55.tar.gz |
Don't forget to chflags noschg the existing binary so we can symlink
over it safely.
Pointed out by: yosimoto@waishi.jp
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 7a16426..4d3b968 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 <bsd.prog.mk> |