diff options
author | ru <ru@FreeBSD.org> | 2003-09-16 12:53:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-09-16 12:53:18 +0000 |
commit | c7550526280a6be02149454e66fae7b2095772fe (patch) | |
tree | 080472c3e8bacb178275e5c8966e237d2de48fb0 /Makefile.inc1 | |
parent | aef56c1fd0ac11d26dc9c3b0b5c35903037ee712 (diff) | |
download | FreeBSD-src-c7550526280a6be02149454e66fae7b2095772fe.zip FreeBSD-src-c7550526280a6be02149454e66fae7b2095772fe.tar.gz |
Help those attempting to upgrade from static to dynamic root.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 693c3ee..44758b1 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -51,6 +51,17 @@ SUBDIR+= include SUBDIR+= lib .endif +# When upgrading to a dynamically linked root, install the runtime +# linker early into its new location before make(1) has a chance +# to run the dynamically linked /bin/sh. +.if defined(WITH_DYNAMICROOT) && !defined(NOPIC) && \ + (!defined(TARGET_ARCH) || ${TARGET_ARCH} == ${MACHINE_ARCH}) && \ + !defined(DISTDIR) && \ + (!defined(DESTDIR) || empty(DESTDIR) || ${DESTDIR} == "/") && \ + !exists(/libexec/ld-elf.so.1) +SUBDIR+= libexec/rtld-elf +.endif + .if exists(${.CURDIR}/bin) SUBDIR+= bin .endif |