ext/intl builds on Mac
| From: | Stas Malyshev | Date: | Mon, 24 May 2010 19:42:55 +0000 |
| Subject: | ext/intl builds on Mac | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-48450@lists.php.net to get a copy of this message | ||
Hi!
The patch below seems to fix ext/intl (and maybe others) compile problems on Mac OS X. The problem seems to be because C++ needs libstdc++ and for some reason it doesn't get added on Mac.
Could people having build problems on Mac see if this fixes the problem for them (buildconf/re-configure required)? Also if some autoconf guru could see if that makes sense in general, that'd be nice too :)
The patch:
--- acinclude.m4 (revision 299709)
+++ acinclude.m4 (working copy)
@@ -768,6 +768,11 @@
if test -z "$php_cxx_done"; then
AC_PROG_CXX
AC_PROG_CXXCPP
+ case $host_alias in
+ *darwin*)
+ PHP_ADD_LIBRARY(stdc++)
+ ;;
+ esac
php_cxx_done=yes
fi
])
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227