diff options
author | imp <imp@FreeBSD.org> | 2003-05-04 04:14:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-05-04 04:14:10 +0000 |
commit | 713f395a43be28066441a65a1a38ca94375328c1 (patch) | |
tree | c4bb84bcf511ba50ba1239043d0daf698bcf64f7 /Makefile.inc1 | |
parent | 35f9e645cf6f2083217d43c1a08f2f7552e64fef (diff) | |
download | FreeBSD-src-713f395a43be28066441a65a1a38ca94375328c1.zip FreeBSD-src-713f395a43be28066441a65a1a38ca94375328c1.tar.gz |
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
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 349cac6..aa01a67 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} |