Skip to content

Commit

Permalink
Merge pull request #4332 from vgaming/backport-sconstruct-fortify
Browse files Browse the repository at this point in the history
backport SConstruct have_fortify change
  • Loading branch information
loonycyborg committed Sep 11, 2019
2 parents 5766873 + 1e8ef49 commit c5213a2
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 c5213a2

Please sign in to comment.