mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Compiling with 'strict-aliasing' optimization breaks some [notable] ports.
GCC turns on 'strict-aliasing' optimization at all levels above -O[1], so explicitly turn it off when using compiling with the -O2 optimization level.
This commit is contained in:
parent
f9faa1eb23
commit
96b8536954
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ CC ?= c89
|
|||
CFLAGS ?= -O
|
||||
.else
|
||||
CC ?= cc
|
||||
CFLAGS ?= -O2 -pipe
|
||||
CFLAGS ?= -O2 -fno-strict-aliasing -pipe
|
||||
.endif
|
||||
|
||||
CXX ?= c++
|
||||
|
|
|
|||
Loading…
Reference in a new issue