mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Compile boot2 with -fno-unit-at-a-time. GCCs aggressive optimization
breaks boot in spectacular ways otherwise.
This commit is contained in:
parent
769756525d
commit
3cd25b7e7b
2 changed files with 6 additions and 2 deletions
|
|
@ -21,7 +21,9 @@ BOOT2_UFS?= UFS1_AND_UFS2
|
|||
#BOOT2_UFS?= UFS1_ONLY
|
||||
|
||||
CFLAGS= -Os \
|
||||
-fno-guess-branch-probability -fomit-frame-pointer\
|
||||
-fno-guess-branch-probability \
|
||||
-fomit-frame-pointer \
|
||||
-fno-unit-at-a-time \
|
||||
-mno-align-long-strings \
|
||||
-mrtd \
|
||||
-D${BOOT2_UFS} \
|
||||
|
|
|
|||
|
|
@ -21,7 +21,9 @@ BOOT2_UFS?= UFS1_AND_UFS2
|
|||
#BOOT2_UFS?= UFS1_ONLY
|
||||
|
||||
CFLAGS= -Os \
|
||||
-fno-guess-branch-probability -fomit-frame-pointer\
|
||||
-fno-guess-branch-probability \
|
||||
-fomit-frame-pointer \
|
||||
-fno-unit-at-a-time \
|
||||
-mno-align-long-strings \
|
||||
-mrtd \
|
||||
-D${BOOT2_UFS} \
|
||||
|
|
|
|||
Loading…
Reference in a new issue