mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
Help those attempting to upgrade from static to dynamic root.
This commit is contained in:
parent
74814b322a
commit
9ed6055244
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120120
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue