summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-05-15 17:59:32 +0000
committerru <ru@FreeBSD.org>2003-05-15 17:59:32 +0000
commit3100b1e28046ab92a2ed60fd300fbaf76de1ed56 (patch)
tree9e390fd17b60deca7a9cb8f7fac936470d12c9c6 /Makefile.inc1
parent1e5c97a86ef725631a92a19919f6ba2ed95c6aac (diff)
downloadFreeBSD-src-3100b1e28046ab92a2ed60fd300fbaf76de1ed56.zip
FreeBSD-src-3100b1e28046ab92a2ed60fd300fbaf76de1ed56.tar.gz
Use the installed world's idea of OSRELDATE rather than the kernel.
This was the initial intent anyway, and it became clear that it is really necessary to treat it this way, as many people happen to run with kernel newer than the installed world. Submitted by: imp, ru Approved by: re (scottl)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc13
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 989d016..fbb4512 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -120,7 +120,8 @@ SUPFLAGS+= -h ${SUPHOST}
MAKEOBJDIRPREFIX?= /usr/obj
.if !defined(OSRELDATE)
-OSRELDATE!= sysctl -n kern.osreldate
+OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
+ /usr/include/osreldate.h
.endif
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
OpenPOWER on IntegriCloud