]> granicus.if.org Git - php/commitdiff
ICU 59+ requires C++11 and errors out without the option
authorStanislav Malyshev <stas@php.net>
Sun, 17 Jun 2018 23:00:06 +0000 (16:00 -0700)
committerStanislav Malyshev <stas@php.net>
Sun, 17 Jun 2018 23:42:41 +0000 (16:42 -0700)
ext/intl/config.m4

index 52408f8e918351cc0dc27b1f50e77dd63b99da5a..e8fad2e432cf1923046fa247071fe71299a29160 100644 (file)
@@ -18,6 +18,9 @@ if test "$PHP_INTL" != "no"; then
   else
     icu_spoof_src=""
   fi
+  if test "$icu_version" -ge "59000"; then
+       ICU_CXXFLAGS="$ICU_CXXFLAGS -std=c++11 -stdlib=libc++"
+  fi
   PHP_NEW_EXTENSION(intl, php_intl.c \
     intl_error.c \
     intl_convert.c \