Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4099 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40155 invoked from network); 19 Aug 2003 23:24:17 -0000 Received: from unknown (HELO adsl-209-204-144-251.sonic.net) (209.204.144.251) by pb1.pair.com with SMTP; 19 Aug 2003 23:24:17 -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 19pF8M-0004t2-5R for internals@lists.php.net; Tue, 19 Aug 2003 15:39:22 -0700 Received: from 192.168.1.103 (SquirrelMail authenticated user mark) by 192.168.1.2 with HTTP; Tue, 19 Aug 2003 15:39:22 -0700 (PDT) Message-ID: <4719.192.168.1.103.1061332762.squirrel@192.168.1.2> Date: Tue, 19 Aug 2003 15:39:22 -0700 (PDT) To: "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: Support for C++ extension in UNIX builds From: mes@zeroc.com ("Mark Spruiell") 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