summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-05-15 17:59:32 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-05-15 17:59:32 +0000
commit50da533c0e7f4209b73becad61db22fd3bdbd3f6 (patch)
tree9e390fd17b60deca7a9cb8f7fac936470d12c9c6 /Makefile.inc1
parent6da7f4937e2f1e82b75c245a2ae20c2814d2b851 (diff)
downloadsrc-test-50da533c0e7f4209b73becad61db22fd3bdbd3f6.tar.gz
src-test-50da533c0e7f4209b73becad61db22fd3bdbd3f6.zip
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)
Notes
Notes: svn path=/head/; revision=115034
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 989d016a5029b..fbb451298f3c4 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}