diff options
author | obrien <obrien@FreeBSD.org> | 2004-10-19 17:25:33 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-10-19 17:25:33 +0000 |
commit | f1ecee461a2583f79038e796697e14097d1999ce (patch) | |
tree | 65e64fb38642e15c537b042c09c69c4bec8e76e3 | |
parent | 08c26615973e1d08f6f0225376d6dc7da6e4e578 (diff) | |
download | FreeBSD-src-f1ecee461a2583f79038e796697e14097d1999ce.zip FreeBSD-src-f1ecee461a2583f79038e796697e14097d1999ce.tar.gz |
Define "I386_CPU" if CPUTYPE is 'i386'. Userland bits can check for "I386_CPU"
to determine if they should select code paths suitable for the 80386 CPU.
Suggested by: ru
-rw-r--r-- | share/mk/bsd.cpu.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 7ba1c43..1cbd5fd 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -100,6 +100,9 @@ _ICC_CPUCFLAGS = -tpp5 . else _ICC_CPUCFLAGS = . endif # ICC on 'i386' +. if ${CPUTYPE} == "i386" +CFLAGS += -DI386_CPU +. endif . elif ${MACHINE_ARCH} == "alpha" _CPUCFLAGS = -mcpu=${CPUTYPE} . elif ${MACHINE_ARCH} == "amd64" |