Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54460 invoked by uid 1010); 25 Sep 2006 21:10:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54444 invoked from network); 25 Sep 2006 21:10:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2006 21:10:01 -0000 Authentication-Results: pb1.pair.com header.from=stuttle@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=stuttle@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.187 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: stuttle@gmail.com X-Host-Fingerprint: 64.233.182.187 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.187] ([64.233.182.187:45333] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/56-10614-6A548154 for ; Mon, 25 Sep 2006 17:09:59 -0400 Received: by nf-out-0910.google.com with SMTP id y25so48830nfb for ; Mon, 25 Sep 2006 14:09:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=AUhzD2127TuH10VWUmE89gAeBeSc6xkOaY6gy0p1vWQzOBjmvZPKeVkvwSrQ48EooKtXImqBUtZjlkDJv/FsQPIuafZGkz5fQWDNWCVQU2pY1FvNv5jpAAWqhIm7Vu+w74dlbN1G4p+/2y/I0J7ozz3OCoHjDWIlpPmHNy/jqoA= Received: by 10.49.92.18 with SMTP id u18mr163616nfl; Mon, 25 Sep 2006 14:09:55 -0700 (PDT) Received: from ?192.168.0.100? ( [84.66.160.63]) by mx.gmail.com with ESMTP id c10sm5831486nfb.2006.09.25.14.09.54; Mon, 25 Sep 2006 14:09:54 -0700 (PDT) Message-ID: <451845A3.4010901@gmail.com> Date: Mon, 25 Sep 2006 22:09:55 +0100 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Building C++ extensions From: stuttle@gmail.com (Stut) Ok, so I've built an extension that uses a C++ library. It compiles fine but the build system is insisting on linking with gcc no matter what I tell it. Is there some simple trick I'm missing as far as convincing it to use g++ goes? Here is the config.m4 in case I've missed something in there... PHP_ARG_ENABLE(mmsr, whether to enable mmsr support, [ --enable-mmsr=dir Enable mmsr support]) if test "$PHP_MMSR" != "no"; then PHP_ADD_LIBRARY_WITH_PATH(mmsr, "$PHP_MMSR") PHP_ADD_INCLUDE("$PHP_MMSR/MMSR") PHP_NEW_EXTENSION(mmsr, mmsr.c "$PHP_MMSR/MMSR/mmsr_bridge.cpp", $ext_shared) PHP_REQUIRE_CXX() fi I had expected the PHP_REQUIRE_CXX() macro to trigger a change to the link command, but it does not seem to have done anything beyond influencing what is used to compile the extension itself. -Stut