Skip to content

Commit

Permalink
backport SConstruct have_fortify change
Browse files Browse the repository at this point in the history
  • Loading branch information
V N committed Sep 11, 2019
1 parent 5766873 commit 1e8ef49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Expand Up @@ -506,7 +506,7 @@ for env in [test_env, client_env, env]:

if env['harden'] and env["PLATFORM"] != 'win32':
env.AppendUnique(CCFLAGS = ["-fPIE"])
if not env["have_fortify"] and "-O0" not in env["opt"]:
if not env.get("have_fortify") and "-O0" not in env["opt"]:
env.AppendUnique(CPPDEFINES = ["_FORTIFY_SOURCE=2"])

if env["PLATFORM"] == 'darwin':
Expand Down

0 comments on commit 1e8ef49

Please sign in to comment.