From patchwork Tue Dec 24 18:37:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 305052 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 A2F3C2C00BA for ; Wed, 25 Dec 2013 05:38:22 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CDA25874C4; Tue, 24 Dec 2013 18:38:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lze4B24CJWKX; Tue, 24 Dec 2013 18:38:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1BC3F87338; Tue, 24 Dec 2013 18:38:21 +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 200F81BFA06 for ; Tue, 24 Dec 2013 18:38:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1BCBB8755C for ; Tue, 24 Dec 2013 18:38:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I1sx4IA291Cr for ; Tue, 24 Dec 2013 18:38:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by whitealder.osuosl.org (Postfix) with ESMTP id 37B6781150 for ; Tue, 24 Dec 2013 18:38:16 +0000 (UTC) Received: from tarshish.tkos.co.il (80.179.12.157.static.012.net.il [80.179.12.157]) by mx.tkos.co.il (Postfix) with ESMTPA id 0566B44051B; Tue, 24 Dec 2013 20:38:12 +0200 (IST) From: Baruch Siach To: buildroot@busybox.net Date: Tue, 24 Dec 2013 20:37:46 +0200 Message-Id: X-Mailer: git-send-email 1.8.5.1 Subject: [Buildroot] [PATCH] ffmpeg: fix build for xtensa 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 ffmpeg package generates libraries that are too large for the xtensa default placement of literals in a dedicated section. Use -mtext-section-literal to place literals in the text section. Fixes http://autobuild.buildroot.net/results/606/60670d35f16c3b8fe19debf7f8e40a046a579520/ Signed-off-by: Baruch Siach --- package/ffmpeg/ffmpeg.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk index 6685110..11703e3 100644 --- a/package/ffmpeg/ffmpeg.mk +++ b/package/ffmpeg/ffmpeg.mk @@ -21,6 +21,10 @@ FFMPEG_CONF_OPT = \ --disable-avfilter \ $(if $(BR2_HAVE_DOCUMENTATION),,--disable-doc) +ifeq ($(BR2_xtensa),y) +FFMPEG_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mtext-section-literals" +endif + ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y) FFMPEG_CONF_OPT += --enable-gpl else