diff options
author | ru <ru@FreeBSD.org> | 2005-02-11 21:04:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-11 21:04:20 +0000 |
commit | 4712983b229e6e5b875e0085a2e78e05cf3146a4 (patch) | |
tree | 7fbb540411ded8e29f7e4e71327f3973c80b4ba0 /sys/conf/kmod.mk | |
parent | 167386b6aeff6d2882d56f0ad1aa6fa2c218bc9f (diff) | |
download | FreeBSD-src-4712983b229e6e5b875e0085a2e78e05cf3146a4.zip FreeBSD-src-4712983b229e6e5b875e0085a2e78e05cf3146a4.tar.gz |
Further embellish rev. 1.180: protect against -fno-strict-aliasing
being already in CFLAGS (as is the case with "make buildkernel").
NB: rev. 1.180 is only needed due to a broken setting of CFLAGS in
tinderbox.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r-- | sys/conf/kmod.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 92a2dde..c753254 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -70,8 +70,8 @@ OBJCOPY?= objcopy .if ${CC} == "icc" CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/} .else -. if ${CFLAGS:M-O[23s]} != "" -CFLAGS+= -fno-strict-aliasing +. if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) +CFLAGS+= -fno-strict-aliasing . endif WERROR?= -Werror .endif |