[Git][NTPsec/ntpsec][master] waf: fix debug sign error

Gary E. Miller gitlab at mg.gitlab.com
Thu Feb 16 19:56:15 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
17e621d8 by Gary E. Miller at 2017-02-16T11:55:29-08:00
waf: fix debug sign error

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -215,7 +215,7 @@ def cmd_configure(ctx, config):
     ld_hardening_flags = [
         ("-z now", "-Wl,-z,now"),     # no deferred symbol resolution
     ]
-    if not ctx.options.disable_debug:
+    if ctx.options.disable_debug:
         # not debugging
         ld_hardening_flags += [
             ('--strip-all', "-Wl,--strip-all"),    # Strip binaries
@@ -226,7 +226,7 @@ def cmd_configure(ctx, config):
 
     for (name, ldflag) in ld_hardening_flags:
         cmd = [ctx.env.CC_NAME, ldflag]
-        #print("cmd: %s" % cmd)
+        # print("cmd: %s" % cmd)
         ctx.start_msg("Checking if linker supports hardening flag: %s" % name)
         try:
             ctx.cmd_and_log(cmd)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/17e621d88ab68cbccabeac66b2bb21e8e6eaffab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170216/216524d7/attachment.html>


More information about the vc mailing list