Skip to content

Commit cef67f6

Browse files
authored
Merge pull request #7046 from jeremyd2019/winpthread-filter-cppflags
Filter -D__USE_MINGW_ANSI_STDIO=1 from CPPFLAGS.
2 parents 27a9345 + 4b5f13f commit cef67f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mingw-w64-winpthreads-git/PKGBUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ _realname=winpthreads
66
pkgbase=mingw-w64-${_realname}-git
77
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git" "${MINGW_PACKAGE_PREFIX}-libwinpthread-git")
88
pkgver=8.0.0.6001.98dad1fe
9-
pkgrel=2
9+
pkgrel=3
1010
_commit='98dad1fefed2a07ade0b37ca6c610ad66739631a'
1111
pkgdesc="MinGW-w64 winpthreads library"
1212
url="https://mingw-w64.sourceforge.io/"
@@ -49,6 +49,8 @@ build() {
4949
mkdir -p "${srcdir}"/build-${MINGW_CHOST} && cd ${srcdir}/build-${MINGW_CHOST}
5050

5151
declare -a extra_config
52+
# https://github.com/msys2/MINGW-packages/issues/7043
53+
extra_config+=("CPPFLAGS=${CPPFLAGS//-D__USE_MINGW_ANSI_STDIO=1/}")
5254
if check_option "debug" "y"; then
5355
extra_config+=("CFLAGS=-O0 -g -DWINPTHREAD_DBG")
5456
extra_config+=("CXXFLAGS=-O0 -g -DWINPTHREAD_DBG")

0 commit comments

Comments
 (0)