aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-05-04 04:14:10 +0000
committerWarner Losh <imp@FreeBSD.org>2003-05-04 04:14:10 +0000
commit22bd4d16b68bb855d74e7e01336496e29719b9f7 (patch)
treec4bb84bcf511ba50ba1239043d0daf698bcf64f7 /Makefile.inc1
parentc9c0dc5bcd30875fe2234a785a0eb7e0973bb069 (diff)
downloadsrc-22bd4d16b68bb855d74e7e01336496e29719b9f7.tar.gz
src-22bd4d16b68bb855d74e7e01336496e29719b9f7.zip
Many developers run with userland != to kernel. While this isn't
supported, it usually works for months at a time. Allow these people to override the OSRELDATE of their installed world when things don't match and the exact OSRELDATE matters and is different than the kernel. Now that Makefile.inc1 depends more and more about which date you have to optimize the pieces it builds, it may be necessary to pessimize things if its guesses are wrong. If OSRELDATE is already set, we won't fork the sysctl to find out what the kernel's date is. Developers on IRC suggested that they run mismatches all the time as well. Reviewed by: obrien
Notes
Notes: svn path=/head/; revision=114634
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 349cac698ba3..aa01a6747b92 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -119,7 +119,9 @@ SUPFLAGS+= -h ${SUPHOST}
.endif
MAKEOBJDIRPREFIX?= /usr/obj
+.if !defined(OSRELDATE)
OSRELDATE!= sysctl -n kern.osreldate
+.endif
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
TARGET?= ${MACHINE}