diff --git a/cpp/BoostParts/boost/python/detail/wrap_python.hpp b/cpp/BoostParts/boost/python/detail/wrap_python.hpp index eaef7841..716511f8 100644 --- a/cpp/BoostParts/boost/python/detail/wrap_python.hpp +++ b/cpp/BoostParts/boost/python/detail/wrap_python.hpp @@ -82,7 +82,9 @@ // Some things we need in order to get Python.h to work with compilers other // than MSVC on Win32 // -#if defined(_WIN32) || defined(__CYGWIN__) +// only performing the check for defined(__CYGWIN__) on 32-bit systems +// ensuring that SIZEOF_LONG is only altered on 32-bit CYGWIN systems +#if defined(_WIN32) # if defined(__GNUC__) && defined(__CYGWIN__) # define SIZEOF_LONG 4 diff --git a/install.sh b/install.sh index c771e4a5..c3970ccf 100755 --- a/install.sh +++ b/install.sh @@ -41,6 +41,9 @@ function python_finder { lib_python="${python_prefix}/lib/lib${which_python}" if [ -f "${lib_python}.a" ]; then python_library+="${lib_python}.a" + elif [ -f "${lib_python}.dll.a" ]; then + ## added a check for .dll.a files for CYGWIN + python_library+="${lib_python}.dll.a" else python_library+="${lib_python}.dylib" fi