diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index 2bf2eaa683a..2b17617954d 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -17,6 +17,9 @@ license="GPL-3" distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz" checksum=f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee +CFLAGS="-D_GLIBCXX_USE_C99_STDIO=1" +CXXFLAGS="$CFLAGS" + if [ "${CROSS_BUILD}" ]; then # Make python2.7 detection work in cross builds CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python2.7"