Help those attempting to upgrade from static to dynamic root.

This commit is contained in:
Ruslan Ermilov 2003-09-16 12:53:18 +00:00
parent 74814b322a
commit 9ed6055244
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120120

View File

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