summaryrefslogtreecommitdiff
path: root/net/py-netifaces/patches/patch-setup.py
blob: 0490d31411279647c130fe83f4819e379fd887ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-setup.py,v 1.2 2015/12/29 04:04:30 dholland Exp $

Use the os specific libraries also for the test build, fixes SunOS

--- setup.py.orig	2012-01-31 11:24:29.000000000 +0000
+++ setup.py
@@ -40,7 +40,7 @@ class my_build_ext(build_ext):
         self.check_requirements()
         build_ext.build_extensions(self)
 
-    def test_build(self, contents, link=True, execute=False, libraries=None,
+    def test_build(self, contents, link=True, execute=False, libraries=libraries,
                    include_dirs=None, library_dirs=None):
         name = os.path.join(self.build_temp, 'conftest-%s.c' % self.conftestidx)
         self.conftestidx += 1