summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-11-13 13:49:29 +0000
committerru <ru@FreeBSD.org>2002-11-13 13:49:29 +0000
commit7920e22cea169d5aaff2a66cc1383ec4f6e63e12 (patch)
treed4d4eae9350b90f65572d961ca980edfb1f019f1 /share/mk
parent79449bdb2e785854f38c01098931c80cd996ee65 (diff)
downloadFreeBSD-src-7920e22cea169d5aaff2a66cc1383ec4f6e63e12.zip
FreeBSD-src-7920e22cea169d5aaff2a66cc1383ec4f6e63e12.tar.gz
Take __FreeBSD_version into account when BOOTSTRAPPING.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.sys.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 2988a5b..8219673 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -55,7 +55,9 @@ CFLAGS += -Werror
# Allow user-specified additional warning flags
CFLAGS += ${CWARNFLAGS}
-# FreeBSD prior to 4.5 didn't have the __FBSDID() macro in <sys/cdefs.h>.
-.if defined(BOOTSTRAPPING)
+# FreeBSD didn't always have the __FBSDID() macro in <sys/cdefs.h>.
+.if defined(BOOTSTRAPPING) && \
+ ( ${BOOTSTRAPPING} < 440001 || \
+ ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500024 ))
CFLAGS+= -D__FBSDID=__RCSID
.endif
OpenPOWER on IntegriCloud