[Git][NTPsec/ntpsec][master] waf: Older CentOS and Debian do not like linking the -fPIC

Gary E. Miller gitlab at mg.gitlab.com
Sat Feb 11 21:49:43 UTC 2017


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


Commits:
016eda02 by Gary E. Miller at 2017-02-11T13:48:51-08:00
waf: Older CentOS and Debian do not like linking the -fPIC

Maybe adding a likn flag fixes.

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -214,6 +214,10 @@ def cmd_configure(ctx, config):
         "-Wl,-z,relro,-z,now",
         "-Wstrict-prototypes",
         ]
+    # older gcc needs this explicit
+    ctx.env.LDFLAGS += [
+        "-fPIE",
+        ]
 
     # We require some things that C99 doesn't enable, like pthreads.
     # Thus -std=gnu99 rather than -std=c99 here, if the compiler supports



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/016eda025ef1c10ab86cf08ab14e7fe32da44501
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170211/bb236218/attachment.html>


More information about the vc mailing list