Amend C++11 for intl compilation on older distributions
authorOndřej Surý <ondrej@sury.org>
Wed, 10 Apr 2019 06:31:27 +0000 (06:31 +0000)
committerOndřej Surý <ondrej@debian.org>
Thu, 11 Apr 2024 20:30:26 +0000 (22:30 +0200)
Gbp-Pq: Name 0032-Amend-C-11-for-intl-compilation-on-older-distributio.patch

ext/intl/config.m4

index dd687bcd97de377855d4029b3637bda39cea59bc..7cf5098d1f918b537ff18bf83a09f7affa960a7b 100644 (file)
@@ -81,7 +81,7 @@ if test "$PHP_INTL" != "no"; then
 
   PHP_REQUIRE_CXX()
   PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
-  PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS"
+  PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS -std=c++11"
   case $host_alias in
   *cygwin*) PHP_INTL_CXX_FLAGS="$PHP_INTL_CXX_FLAGS -D_POSIX_C_SOURCE=200809L"
   esac