From b2c4f888fd620e1cc4a0cafb0f73b061c386b6b5 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Wed, 31 Oct 2007 11:19:32 +0000 Subject: [PATCH] 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 reboot --- libexec/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/Makefile b/libexec/Makefile index 6a32d10c20ff..9111fc41ce18 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