Re: Support for C++ extension in UNIX builds
| From: | Jani Taskinen | Date: | Wed, 20 Aug 2003 03:52:04 +0000 |
| Subject: | Re: Support for C++ extension in UNIX builds | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4101@lists.php.net to get a copy of this message | ||
Add PHP_REQUIRE_CXX to your config.m4
--Jani
On Tue, 19 Aug 2003, Mark Spruiell wrote:
>I've written a PHP5 extension in C++ that builds great on Linux with GCC, whether I compile
>it
>into PHP or build it as a shared library.
>
>On Solaris with Sun CC, however, I've had to manually edit the Makefile or the libtool
>script in
>order to successfully build my extension. When I compile the extension into PHP, I have to
>change
>$(CC) to $(CXX) in certain places in the Makefile. When I build it as a dynamic library, I have
>to
>edit libtool so that it uses $(CXX) and not ld to create the shared library.
>
>Am I overlooking some configuration step that eliminates the need to manually edit these files?
>
>Thanks,
>- Mark
>