Commit a2c5f5aa authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

configure: Enable pie for toolchain=hardened.

parent 7845c138
...@@ -3575,6 +3575,8 @@ case "$toolchain" in ...@@ -3575,6 +3575,8 @@ case "$toolchain" in
add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
add_cflags -fno-strict-overflow -fstack-protector-all add_cflags -fno-strict-overflow -fstack-protector-all
add_ldflags -Wl,-z,relro -Wl,-z,now add_ldflags -Wl,-z,relro -Wl,-z,now
add_cflags -fPIE
add_ldexeflags -fPIE -pie
;; ;;
?*) ?*)
die "Unknown toolchain $toolchain" die "Unknown toolchain $toolchain"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment