diff options
author | yar <yar@FreeBSD.org> | 2007-10-31 11:19:32 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2007-10-31 11:19:32 +0000 |
commit | 64d3637d560badf6b07a6649b3c060839f41fa3e (patch) | |
tree | acad647d231da0a758e6ed0e908b119e1e8db843 /libexec | |
parent | c9f53dc499bf895e1a8f90a39ad71ae5b964658d (diff) | |
download | FreeBSD-src-64d3637d560badf6b07a6649b3c060839f41fa3e.zip FreeBSD-src-64d3637d560badf6b07a6649b3c060839f41fa3e.tar.gz |
Add a hackish knob to skip rtld, NO_RTLD. In conjunction with
src/Makefile.inc1 rev. 1.590, it can allow installing a world
cross-built for a different arch over the live system. The procedure
is more or less as follows:
cp -R /rescue /rescue.old
make installkernel TARGET_ARCH=foo
make -DNO_RTLD installworld TARGET_ARCH=foo
^^^^^^^^^
PATH=/rescue.old
chflags noschg /libexec/ld-elf.so.1
cp /usr/obj/foo/usr/src/libexec/rtld/ld-elf.so.1 /libexec
chflags schg /libexec/ld-elf.so.1
<ditto for ld-elf32.so.1 if installing for amd64>
reboot
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/Makefile b/libexec/Makefile index 6a32d10..9111fc4 100644 --- a/libexec/Makefile +++ b/libexec/Makefile @@ -43,7 +43,7 @@ _ypxfr= ypxfr _tftp-proxy= tftp-proxy .endif -.if !defined(NO_PIC) +.if !defined(NO_PIC) && !defined(NO_RTLD) _rtld-elf= rtld-elf .endif |