setup: link osutil.so to libsocket on Solaris/illumos (issue6299) stable
authorAlexander Pyhalov <apyhalov@gmail.com>
Mon, 13 Apr 2020 16:30:13 +0300
branchstable
changeset 44692 539490756a72
parent 44667 b561f3a68e41
child 44729 26ce8e751503
setup: link osutil.so to libsocket on Solaris/illumos (issue6299)
setup.py
--- 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',