Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13382 invoked from network); 20 Aug 2003 04:58:26 -0000 Received: from unknown (HELO milton.schell.de) (217.160.72.35) by pb1.pair.com with SMTP; 20 Aug 2003 04:58:26 -0000 Received: (qmail 18324 invoked by uid 501); 20 Aug 2003 04:58:26 -0000 Received: from unknown (HELO eco.foo) (80.143.43.101) by kdserv.de with SMTP; 20 Aug 2003 04:58:26 -0000 Received: from localhost (localhost [127.0.0.1]) by eco.foo (Postfix) with ESMTP id 0167837FD3; Wed, 20 Aug 2003 06:58:12 +0200 (CEST) Date: Wed, 20 Aug 2003 06:58:10 +0200 (CEST) X-X-Sender: sas@eco.foo 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: sascha@schumann.cx (Sascha Schumann) > 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. *.cpp files are automatically compiled using $(CXX). Make sure that you use the sanctioned suffix. > 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. libtool 1.4 does not support building DSOs in a portable way for any language but C. Try libtool 1.5. - Sascha