From cce638a8adf4e045ca5505afea4bda57753c31dd Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 11 Aug 2014 16:33:29 -0400 Subject: initial import of debian package --- buildutils/misc.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 buildutils/misc.py (limited to 'buildutils/misc.py') diff --git a/buildutils/misc.py b/buildutils/misc.py new file mode 100644 index 0000000..77f843b --- /dev/null +++ b/buildutils/misc.py @@ -0,0 +1,15 @@ +"""misc build utility functions""" +# Copyright (C) PyZMQ Developers +# Distributed under the terms of the Modified BSD License. + +def customize_mingw(cc): + # strip -mno-cygwin from mingw32 (Python Issue #12641) + for cmd in [cc.compiler, cc.compiler_cxx, cc.compiler_so, cc.linker_exe, cc.linker_so]: + if '-mno-cygwin' in cmd: + cmd.remove('-mno-cygwin') + + # remove problematic msvcr90 + if 'msvcr90' in cc.dll_libraries: + cc.dll_libraries.remove('msvcr90') + +__all__ = ['customize_mingw'] -- cgit v1.2.3