diff options
author | obrien <obrien@FreeBSD.org> | 2005-01-22 00:58:34 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2005-01-22 00:58:34 +0000 |
commit | cb779e8aab212ecfba1e0ec21a5362a2d5457c95 (patch) | |
tree | 9ce6e2504fc805f7715c79d23e2f0ed31b23d2bc /sys | |
parent | 802a5a53d2aad2c41d15ff0d91f17c178489c7a4 (diff) | |
download | FreeBSD-src-cb779e8aab212ecfba1e0ec21a5362a2d5457c95.zip FreeBSD-src-cb779e8aab212ecfba1e0ec21a5362a2d5457c95.tar.gz |
Embellish rev 1.61. If we're not building a debug kernel, use -O2 as before.
Submitted by: ru
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/kern.pre.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index de997ab..483c315 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -17,12 +17,17 @@ OBJCOPY?= objcopy SIZE?= size .if ${CC} == "icc" -COPTFLAGS?=-O +COPTFLAGS?= -O .else +. if defined(DEBUG) +_MINUS_O= -O +. else +_MINUS_O= -O2 +. endif . if ${MACHINE_ARCH} == "amd64" COPTFLAGS?=-O2 -frename-registers -pipe . else -COPTFLAGS?=-O -pipe +COPTFLAGS?=${_MINUS_O} -pipe . endif . if ${COPTFLAGS:M-O[23s]} != "" COPTFLAGS+= -fno-strict-aliasing |