[Git][NTPsec/ntpsec][master] Only check for -lnsl and -lsocket on Solaris
Matt Selsky
gitlab at mg.gitlab.com
Thu Jan 26 13:36:32 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
0807361c by Matt Selsky at 2017-01-26T08:35:54-05:00
Only check for -lnsl and -lsocket on Solaris
Other platforms don't need this and some have an empty libnsl. No need to link
that in, if it's not needed.
- - - - -
1 changed file:
- wafhelpers/configure.py
Changes:
=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -575,8 +575,9 @@ def cmd_configure(ctx, config):
check_mdns_run(ctx)
# Solaris needs -lsocket and -lnsl for socket code
- ctx.check(features="c cshlib", lib="socket", mandatory=False)
- ctx.check(features="c cshlib", lib="nsl", mandatory=False)
+ if sys.platform.startswith("sunos"):
+ ctx.check(features="c cshlib", lib="socket", mandatory=False)
+ ctx.check(features="c cshlib", lib="nsl", mandatory=False)
if ctx.options.enable_classic_mode:
ctx.define("ENABLE_CLASSIC_MODE", 1)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0807361c72cf104c25ce5d5962a42179a10f3476
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170126/879528c2/attachment.html>
More information about the vc
mailing list