Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4101 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36620 invoked from network); 20 Aug 2003 03:52:04 -0000 Received: from unknown (HELO netphobia.fi) (213.243.181.8) by pb1.pair.com with SMTP; 20 Aug 2003 03:52:04 -0000 Received: from localhost (jani@localhost) by netphobia.fi (8.11.6/8.11.6) with ESMTP id h7K3q4102827; Wed, 20 Aug 2003 06:52:04 +0300 X-Authentication-Warning: netphobia.fi: jani owned process doing -bs Date: Wed, 20 Aug 2003 06:52:04 +0300 (EEST) Sender: jani@netphobia.fi Reply-To: Jani Taskinen To: Mark Spruiell cc: PHP Internals List In-Reply-To: <4719.192.168.1.103.1061332762.squirrel@192.168.1.2> Message-ID: References: <4719.192.168.1.103.1061332762.squirrel@192.168.1.2> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Support for C++ extension in UNIX builds From: sniper@iki.fi (Jani Taskinen) 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 >