configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain
This commit is contained in:
parent
00431bf874
commit
2d589273dd
3
configure
vendored
3
configure
vendored
@ -2553,7 +2553,8 @@ case "$toolchain" in
|
|||||||
add_ldflags -fprofile-arcs -ftest-coverage
|
add_ldflags -fprofile-arcs -ftest-coverage
|
||||||
;;
|
;;
|
||||||
hardened)
|
hardened)
|
||||||
add_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all
|
add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||||
|
add_cflags -fno-strict-overflow -fstack-protector-all
|
||||||
add_ldflags -Wl,-z,relro -Wl,-z,now
|
add_ldflags -Wl,-z,relro -Wl,-z,now
|
||||||
;;
|
;;
|
||||||
?*)
|
?*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user