Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87209 invoked from network); 20 Aug 2003 04:35:11 -0000 Received: from unknown (HELO adsl-209-204-144-251.sonic.net) (209.204.144.251) by pb1.pair.com with SMTP; 20 Aug 2003 04:35:11 -0000 Received: from [127.0.0.1] (helo=192.168.1.2) by adsl-209-204-144-251.sonic.net with smtp (Exim 4.20) id 19pKgg-00053U-Go; Tue, 19 Aug 2003 21:35:10 -0700 Received: from 192.168.1.253 (SquirrelMail authenticated user mark) by 192.168.1.2 with HTTP; Tue, 19 Aug 2003 21:35:10 -0700 (PDT) Message-ID: <4161.192.168.1.253.1061354110.squirrel@192.168.1.2> In-Reply-To: References: <4719.192.168.1.103.1061332762.squirrel@192.168.1.2> Date: Tue, 19 Aug 2003 21:35:10 -0700 (PDT) To: "Jani Taskinen" Cc: "PHP Internals List" Reply-To: mes@zeroc.com User-Agent: SquirrelMail/1.4.0-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: Re: [PHP-DEV] Support for C++ extension in UNIX builds From: mes@zeroc.com ("Mark Spruiell") > > Add PHP_REQUIRE_CXX to your config.m4 Thanks for the reply, but I've already got PHP_REQUIRE_CXX in my config.m4, and I'm setting the cxx flag in PHP_NEW_EXTENSION. Is there anything else I'm missing? - Mark > --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 >> > >