diff options
author | Michel Zou | 2020-01-14 11:02:54 +0100 |
---|---|---|
committer | Michel Zou | 2020-01-14 11:02:54 +0100 |
commit | 2443201687c323595870d5c361d62acd57c18361 (patch) | |
tree | 85d917599e15acb3c7486f4cfebd8f8548d507cf /PKGBUILD | |
parent | 02636ea4e960cc8b2b8c83a80301581df9285bc6 (diff) | |
download | aur-mingw-w64-python27-bin.tar.gz |
bpo36020
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ pkgname=mingw-w64-python27-bin pkgver=2.7.16 _pybasever=27 -pkgrel=1 +pkgrel=2 pkgdesc="A high-level scripting language (native MSVC version) (mingw-w64)" arch=('any') license=('PSF') @@ -32,6 +32,8 @@ build() { # https://bugs.python.org/issue11722 sed -i "s|#if defined(MS_WIN64)|#if defined(MS_WIN64) \|\| defined(__MINGW64__)|g" include/pyconfig.h + # https://bugs.python.org/issue36020 + sed -i 's|#if defined(MS_WIN32) \&\& !defined(HAVE_SNPRINTF)|#if defined(_MSC_VER) \&\& !defined(HAVE_SNPRINTF)|g' include/pyerrors.h gendef python${_pybasever}.dll ${_arch}-dlltool --dllname python${_pybasever}.dll --def python${_pybasever}.def --output-lib libs/libpython${_pybasever}.dll.a |