Fix previous on Windows/macOS. v2.15.60
authorCarl Hetherington <cth@carlh.net>
Sat, 25 Apr 2020 22:42:01 +0000 (00:42 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 25 Apr 2020 22:42:01 +0000 (00:42 +0200)
wscript

diff --git a/wscript b/wscript
index bee03cb0cc1d94a4f856546124940e5e5c19545b..86c65ad74da8f49aae7321d3d45694f879c1f8d1 100644 (file)
--- a/wscript
+++ b/wscript
@@ -394,8 +394,9 @@ def configure(conf):
     if conf.options.enable_disk:
         if conf.check_cfg(package='nanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=False) is None:
             conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
     if conf.options.enable_disk:
         if conf.check_cfg(package='nanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=False) is None:
             conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
-        # We link with nanomsg statically on Centos 8 so we need to link this as well
-        conf.env.LIB_NANOMSG.append('anl')
+        if conf.env.TARGET_LINUX:
+            # We link with nanomsg statically on Centos 8 so we need to link this as well
+            conf.env.LIB_NANOMSG.append('anl')
 
     # FFmpeg
     if conf.options.static_ffmpeg:
 
     # FFmpeg
     if conf.options.static_ffmpeg: