mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-27 20:20:34 -05:00
Fix emerg-shutdown gcc build, remove AddressSanitizer from hardening options since it is incompatible with static builds
This commit is contained in:
parent
7e016b5632
commit
60f8153f64
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ gcc_hardening_options=(
|
||||||
"-Wcast-align=strict" "-Wjump-misses-init" "-Wlogical-op" "-U_FORTIFY_SOURCE"
|
"-Wcast-align=strict" "-Wjump-misses-init" "-Wlogical-op" "-U_FORTIFY_SOURCE"
|
||||||
"-D_FORTIFY_SOURCE=3" "-fstack-clash-protection" "-fstack-protector-all"
|
"-D_FORTIFY_SOURCE=3" "-fstack-clash-protection" "-fstack-protector-all"
|
||||||
"-fno-delete-null-pointer-checks" "-fno-strict-aliasing"
|
"-fno-delete-null-pointer-checks" "-fno-strict-aliasing"
|
||||||
"-fsanitize=address,undefined" "-fno-sanitize-recover=all"
|
"-fsanitize=undefined" "-fno-sanitize-recover=all"
|
||||||
"-fstrict-flex-arrays=3" "-ftrivial-auto-var-init=pattern" "-fPIE"
|
"-fstrict-flex-arrays=3" "-ftrivial-auto-var-init=pattern" "-fPIE"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ else
|
||||||
## Build the actual emerg-shutdown executable
|
## Build the actual emerg-shutdown executable
|
||||||
if [ ! -f '/run/emerg-shutdown' ]; then
|
if [ ! -f '/run/emerg-shutdown' ]; then
|
||||||
gcc \
|
gcc \
|
||||||
-g
|
-g \
|
||||||
/usr/src/security-misc/emerg-shutdown.c \
|
/usr/src/security-misc/emerg-shutdown.c \
|
||||||
-o \
|
-o \
|
||||||
/run/emerg-shutdown \
|
/run/emerg-shutdown \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue