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

Elan Ruusamäe glen at pld-linux.org
Tue Jun 6 20:20:53 CEST 2017


On 29.05.2017 19:02, qboosh wrote:
> 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
>   
i would prefer a .patch in ext/intl/*.m4 that could be upstreamed.


-- 
glen



More information about the pld-devel-en mailing list