Barrow from kmod.mk and protect against adding -fno-strict-aliasing
when it is already in COPTFLAGS.
This commit is contained in:
parent
5fffaf1615
commit
5af30068ff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user