[packages/php] - force C++ 11 for icu 59+ (intl module)

qboosh qboosh at pld-linux.org
Mon May 29 18:02:55 CEST 2017


commit 3e7f45eb8ad3c6920b2270a2f8d38f8d258252bb
Author: Jakub Bogusz <qboosh at 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
 
 sapis="
 cli
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/3e7f45eb8ad3c6920b2270a2f8d38f8d258252bb



More information about the pld-cvs-commit mailing list