Re: ext/intl builds on Mac
| From: | Philip Olson | Date: | Tue, 25 May 2010 01:04:29 +0000 |
| Subject: | Re: ext/intl builds on Mac | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48459@lists.php.net to get a copy of this message | ||
On May 24, 2010, at 12:42 PM, Stas Malyshev wrote:
> 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
> ])
Hello Stas,
This patch works for me, and is required for ext/intl to build.
Regards,
Philip