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)
This commit is contained in:
Ruslan Ermilov 2003-05-15 17:59:32 +00:00
parent 6da7f4937e
commit 50da533c0e

View File

@ -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}