diff setup.py @ 44220:539490756a72 stable

setup: link osutil.so to libsocket on Solaris/illumos (issue6299)
author Alexander Pyhalov <apyhalov@gmail.com>
date Mon, 13 Apr 2020 16:30:13 +0300
parents bda050bc9987
children 26ce8e751503
line wrap: on
line diff
--- a/setup.py	Mon Apr 06 00:24:57 2020 +0200
+++ b/setup.py	Mon Apr 13 16:30:13 2020 +0300
@@ -1276,6 +1276,9 @@
 if sys.platform == 'darwin':
     osutil_ldflags += ['-framework', 'ApplicationServices']
 
+if sys.platform == 'sunos5':
+    osutil_ldflags += ['-lsocket']
+
 xdiff_srcs = [
     'mercurial/thirdparty/xdiff/xdiffi.c',
     'mercurial/thirdparty/xdiff/xprepare.c',