Barrow from kmod.mk and protect against adding -fno-strict-aliasing

when it is already in COPTFLAGS.
This commit is contained in:
David E. O'Brien 2005-02-13 05:58:40 +00:00
parent 5fffaf1615
commit 5af30068ff

View File

@ -29,7 +29,7 @@ COPTFLAGS?=-O2 -frename-registers -pipe
. else
COPTFLAGS?=${_MINUS_O} -pipe
. endif
. if ${COPTFLAGS:M-O[23s]} != ""
. if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
COPTFLAGS+= -fno-strict-aliasing
. endif
.endif