From 50da533c0e7f4209b73becad61db22fd3bdbd3f6 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 15 May 2003 17:59:32 +0000 Subject: 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) --- Makefile.inc1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.inc1') diff --git a/Makefile.inc1 b/Makefile.inc1 index 989d016a5029..fbb451298f3c 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} -- cgit v1.2.3