Files
MINGW-packages/mingw-w64-python2/0840-add-builddir-to-library_dirs.patch

14 lines
496 B
Diff

diff -urN a/setup.py b/setup.py
--- a/setup.py 2014-10-11 22:44:35.931496100 +0100
+++ b/setup.py 2014-10-11 22:44:38.916666900 +0100
@@ -272,6 +272,9 @@
args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags
self.compiler.set_executables(**args)
+ if host_platform not in ['mingw', 'win32']:
+ self.compiler.library_dirs.insert(0, '.')
+
build_ext.build_extensions(self)
longest = max([len(e.name) for e in self.extensions])