Commit b7d10e56 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5730 enhance security using special compilation options

add a comment
parent da4f8269
...@@ -199,6 +199,8 @@ IF (WITH_ASAN) ...@@ -199,6 +199,8 @@ IF (WITH_ASAN)
ENDIF() ENDIF()
ENDIF() ENDIF()
# enable security hardening features, like most distributions do
# in our benchmarks that costs about ~1% of performance, depending on the load
OPTION(SECURITY_HARDENED "Use security-enhancing compiler features (stack protector, relro, etc)" ON) OPTION(SECURITY_HARDENED "Use security-enhancing compiler features (stack protector, relro, etc)" ON)
IF(SECURITY_HARDENED) IF(SECURITY_HARDENED)
# security-enhancing flags # security-enhancing flags
......
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