[Git][NTPsec/ntpsec][master] Avoid ld warning about non-existent directories on OSX

Matt Selsky gitlab at mg.gitlab.com
Sat Jan 28 18:44:53 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
73b91e90 by Matt Selsky at 2017-01-28T13:39:58-05:00
Avoid ld warning about non-existent directories on OSX

ld: warning: directory not found for option '-L/opt/local/lib'

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -258,8 +258,10 @@ def cmd_configure(ctx, config):
         ctx.load("msvc")
     elif ctx.env.PLATFORM_TARGET == "osx":
         # macports location
-        ctx.env.PLATFORM_INCLUDES = ["/opt/local/include"]
-        ctx.env.PLATFORM_LIBPATH = ["/opt/local/lib"]
+        if os.path.isdir("/opt/local/include"):
+            ctx.env.PLATFORM_INCLUDES = ["/opt/local/include"]
+        if os.path.isdir("/opt/local/lib"):
+            ctx.env.PLATFORM_LIBPATH = ["/opt/local/lib"]
 	# OS X needs this for IPv6
         ctx.define("__APPLE_USE_RFC_3542", 1,
                    comment="Needed for IPv6 support")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/73b91e90bd7422120344078309f175fb591c4f99
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170128/ddf3419b/attachment.html>


More information about the vc mailing list