diff options
author | imp <imp@FreeBSD.org> | 2005-01-26 21:35:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-01-26 21:35:55 +0000 |
commit | 0ebf60befadb87860d6d9f013f16d506dbd90753 (patch) | |
tree | 1c705a14962ab39ce26a1f6660f5f90dff601ad8 /sys/conf/kmod.mk | |
parent | 0af1181586bc0d7d7d6efeb9c23d7f8601ddda49 (diff) | |
download | FreeBSD-src-0ebf60befadb87860d6d9f013f16d506dbd90753.zip FreeBSD-src-0ebf60befadb87860d6d9f013f16d506dbd90753.tar.gz |
Add -fno-strict-alias whenever someone is compiling with -O2,
unconditionally.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r-- | sys/conf/kmod.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 77de807..5d41428 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -71,6 +71,7 @@ OBJCOPY?= objcopy CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/} .else WERROR?= -Werror +CFLAGS:= ${CFLAGS:C/-O2/-O2 -fno-strict-alias/} .endif CFLAGS+= ${WERROR} CFLAGS+= -D_KERNEL |