From patchwork Sat Nov 17 22:24:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 199884 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id EE02E2C0093 for ; Sun, 18 Nov 2012 09:26:57 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A3E788D4B5; Sat, 17 Nov 2012 22:26:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FZhjtKRTXxoP; Sat, 17 Nov 2012 22:26:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 70C088D3FF; Sat, 17 Nov 2012 22:26:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7A2D88F75B for ; Sat, 17 Nov 2012 22:25:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E6D438D34C for ; Sat, 17 Nov 2012 22:25:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KfQ86FtXxaJk for ; Sat, 17 Nov 2012 22:25:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B4EA8D261 for ; Sat, 17 Nov 2012 22:25:15 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id BD19D180; Sat, 17 Nov 2012 23:25:08 +0100 (CET) Received: from localhost (46.130.200.77.rev.sfr.net [77.200.130.46]) by mail.free-electrons.com (Postfix) with ESMTPSA id 41B4313D for ; Sat, 17 Nov 2012 23:25:00 +0100 (CET) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sat, 17 Nov 2012 23:24:06 +0100 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 08/10] php: fix C++ link issue X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The intl module is implemented in C++, but PHP fails to use g++ as the compiler for the final link. As a workaround, tell it to link with libstdc++. Fixes: http://autobuild.buildroot.org/results/13eefdf2121fa1aea7a844bbed8b6cbce3b45996/build-end.log Signed-off-by: Thomas Petazzoni --- package/php/php.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/php/php.mk b/package/php/php.mk index 6ac9f29..0dfb6db 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -102,6 +102,10 @@ endif ifeq ($(BR2_PACKAGE_PHP_EXT_INTL),y) PHP_CONF_OPT += --enable-intl --with-icu-dir=$(STAGING_DIR)/usr PHP_DEPENDENCIES += icu + # The intl module is implemented in C++, but PHP fails to use + # g++ as the compiler for the final link. As a workaround, + # tell it to link libstdc++. + PHP_CONF_ENV += EXTRA_LIBS="-lstdc++" endif ifeq ($(BR2_PACKAGE_PHP_EXT_GMP),y)