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
This commit is contained in:
Yaroslav Tykhiy 2007-10-31 11:19:32 +00:00
parent 519bc416ca
commit b2c4f888fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173220

View File

@ -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