diff options
author | kris <kris@FreeBSD.org> | 2001-02-20 08:37:51 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-02-20 08:37:51 +0000 |
commit | 5028a2dad32a80bf674f4373499896c3fa4b9f57 (patch) | |
tree | b89cf0289827b9a7ee274362631ba777cb99a343 /share/mk | |
parent | ce685a3e045aa8ba84f60a0a1b99166f97d5d09f (diff) | |
download | FreeBSD-src-5028a2dad32a80bf674f4373499896c3fa4b9f57.zip FreeBSD-src-5028a2dad32a80bf674f4373499896c3fa4b9f57.tar.gz |
Turns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
set the variable until you rebuild it, and the alternative is to be stuck
playing games with ``.if defined(MACHINE_CPU) && ... '' for all eternity.
We now set up the reasonable default for i386 and alpha here -- given this
it probably makes sense to remove the corresponding code from make(1).
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/sys.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 1449d99..8ce6a8c 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -104,6 +104,16 @@ YFLAGS ?= -d # as an i386 architecture. MACHINE_ARCH ?= i386 +# MACHINE_CPU contains a list of CPU generations for which +# CPU-specific optimizations are desired. This must be set here +# to allow bootstrapping from old versions of make which do not +# set MACHINE_CPU. +.if ${MACHINE_ARCH} == "i386" +MACHINE_CPU ?= i386 +.elif ${MACHINE_ARCH} == "alpha" +MACHINE_CPU ?= ev4 +.endif + # For tags rule. GTAGSFLAGS= -o HTAGSFLAGS= |