summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2003-12-09 00:42:44 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2003-12-09 00:42:44 +0000
commit5091e3df704cd635653ea174ebb06a77792ea609 (patch)
tree2c21aab3a1d9cacbce050872709756178efa6348
parent40c5c1f8a121bbebf59cb66d7176bad73a266dec (diff)
Notes
-rw-r--r--Makefile.inc120
1 files changed, 7 insertions, 13 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 3e7903595b7a..786dc6ab1cdd 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -46,19 +46,16 @@ SUBDIR+= share/info
.if exists(${.CURDIR}/include)
SUBDIR+= include
.endif
+
+# We must do lib and libexec before bin, because if installworld
+# installs a new /bin/sh, the 'make' command will *immediately*
+# use that new version. And the new (dynamically-linked) /bin/sh
+# will expect to find appropriate libraries in /lib and /libexec.
.if exists(${.CURDIR}/lib)
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(NO_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
+.if exists(${.CURDIR}/libexec)
+SUBDIR+= libexec
.endif
.if exists(${.CURDIR}/bin)
@@ -74,9 +71,6 @@ SUBDIR+= gnu
!defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_KERBEROS)
SUBDIR+= kerberos5
.endif
-.if exists(${.CURDIR}/libexec)
-SUBDIR+= libexec
-.endif
.if exists(${.CURDIR}/rescue) && !defined(NO_RESCUE)
SUBDIR+= rescue
.endif