From patchwork Mon Nov 7 03:29:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Bobroff X-Patchwork-Id: 691751 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tBycX0p28z9s2G for ; Mon, 7 Nov 2016 14:30:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 99BD093DFA; Mon, 7 Nov 2016 03:29:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pBU-L6hMGW2c; Mon, 7 Nov 2016 03:29:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BA4EC93CE5; Mon, 7 Nov 2016 03:29:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 517071C2C34 for ; Mon, 7 Nov 2016 03:29:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1D383865C6 for ; Mon, 7 Nov 2016 03:29:55 +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 NSA6l71Rm0V0 for ; Mon, 7 Nov 2016 03:29:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by whitealder.osuosl.org (Postfix) with ESMTPS id 80BB78B225 for ; Mon, 7 Nov 2016 03:29:53 +0000 (UTC) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uA73TVTr031539 for ; Sun, 6 Nov 2016 22:29:53 -0500 Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) by mx0a-001b2d01.pphosted.com with ESMTP id 26jbwnk512-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 06 Nov 2016 22:29:52 -0500 Received: from localhost by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 7 Nov 2016 13:29:48 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp04.au.ibm.com (202.81.31.210) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 7 Nov 2016 13:29:46 +1000 Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 2F7873578056 for ; Mon, 7 Nov 2016 14:29:46 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uA73Tkho60948530 for ; Mon, 7 Nov 2016 14:29:46 +1100 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uA73Tj1V023454 for ; Mon, 7 Nov 2016 14:29:45 +1100 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id uA73TiGL023410 for ; Mon, 7 Nov 2016 14:29:45 +1100 Received: from tungsten.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 46024A00F6 for ; Mon, 7 Nov 2016 14:29:44 +1100 (AEDT) From: Sam Bobroff To: buildroot@busybox.net Date: Mon, 7 Nov 2016 14:29:44 +1100 X-Mailer: git-send-email 2.1.4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110703-0012-0000-0000-000001E09704 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110703-0013-0000-0000-0000065C64AD Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-11-07_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611070066 Subject: [Buildroot] [PATCH 1/1] sdl: fix building on powerpc64 and powerpc64le X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Fixes http://autobuild.buildroot.net/results/70659eead71faa82ccfd0016d04caed134707c24 (The problem was detected when building chocolate-doom but the issue is in sdl.) Old autotools included with SDL fails to detect dynamic linker support on powerpc64 and powerpc64le. See SDL bug 3481: https://bugzilla.libsdl.org/show_bug.cgi?id=3481 Signed-off-by: Sam Bobroff --- package/sdl/0003-fix-configure-powerpc64.patch | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/sdl/0003-fix-configure-powerpc64.patch diff --git a/package/sdl/0003-fix-configure-powerpc64.patch b/package/sdl/0003-fix-configure-powerpc64.patch new file mode 100644 index 0000000..764a947 --- /dev/null +++ b/package/sdl/0003-fix-configure-powerpc64.patch @@ -0,0 +1,30 @@ +sdl: Add powerpc64 and powerpc64le support to old autotools. + +Fixes build on powerpc64le which doesn't fail but produces a static library +rather than a dynamic one (which causes link errors in some packages using +libsdl). + +Signed-off-by: Sam Bobroff + +*** a/acinclude/libtool.m4 2016-11-07 14:04:47.444117880 +1100 +--- b/acinclude/libtool.m4 2016-11-07 14:05:03.652181547 +1100 +*************** +*** 1302,1308 **** + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +! ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) +--- 1302,1311 ---- + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +! powerpc64le-*linux*) +! LD="${LD-ld} -m elf64lppc" +! ;; +! powerpc64-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*)