Re: Support for C++ extension in UNIX builds

From: Date: Wed, 20 Aug 2003 04:58:10 +0000
Subject: Re: Support for C++ extension in UNIX builds
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4103@lists.php.net to get a copy of this message
> 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

« previous php.internals (#4103) next »