On Tue, Jun 06, 2017 at 09:20:53PM +0300, Elan Ruusamäe wrote: > On 29.05.2017 19:02, qboosh wrote: > >commit 3e7f45eb8ad3c6920b2270a2f8d38f8d258252bb > >Author: Jakub Bogusz <qbo...@pld-linux.org> > >Date: Mon May 29 18:03:46 2017 +0200 > > > > - force C++ 11 for icu 59+ (intl module) > > > > php.spec | 4 ++++ > > 1 file changed, 4 insertions(+) > >--- > >diff --git a/php.spec b/php.spec > >index 82df179..20b6314 100644 > >--- a/php.spec > >+++ b/php.spec > >@@ -2253,6 +2253,10 @@ fi > > export PROG_SENDMAIL="/usr/lib/sendmail" > > export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \ > > -I%{_includedir}/xmlrpc-epi" > >+%if %{with intl} > >+# icu 59+ C++ API requires C++ >= 11 > >+CXXFLAGS="%{rpmcxxflags} -std=c++11" > >+%endif > > > i would prefer a .patch in ext/intl/*.m4 that could be upstreamed.
Probably adding AX_CXX_COMPILE_STDCXX([11], [], [optional]) would do (if using ax_cxx_compile_stdcxx.m4 from autoconf-archive is acceptable). -- Jakub Bogusz http://qboosh.pl/ _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en