X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lists.alpinelinux.org (Postfix) with ESMTP id DD2AA5C4185 for ; Tue, 17 Jan 2017 16:30:39 +0000 (GMT) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0HGTQKJ017227 for ; Tue, 17 Jan 2017 11:30:39 -0500 Received: from e24smtp04.br.ibm.com (e24smtp04.br.ibm.com [32.104.18.25]) by mx0a-001b2d01.pphosted.com with ESMTP id 281jkpwvqm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 17 Jan 2017 11:30:38 -0500 Received: from localhost by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Jan 2017 14:30:36 -0200 Received: from d24dlp01.br.ibm.com (9.18.248.204) by e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Jan 2017 14:30:34 -0200 Received: from d24relay04.br.ibm.com (d24relay04.br.ibm.com [9.18.232.146]) by d24dlp01.br.ibm.com (Postfix) with ESMTP id BCE763520068 for ; Tue, 17 Jan 2017 11:30:02 -0500 (EST) Received: from d24av03.br.ibm.com (d24av03.br.ibm.com [9.8.31.95]) by d24relay04.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0HGUY4w33554558 for ; Tue, 17 Jan 2017 14:30:34 -0200 Received: from d24av03.br.ibm.com (localhost [127.0.0.1]) by d24av03.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v0HGUX1G028749 for ; Tue, 17 Jan 2017 14:30:34 -0200 Received: from localhost (debra.br.ibm.com [9.86.26.37]) by d24av03.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v0HGUXNv028746; Tue, 17 Jan 2017 14:30:33 -0200 From: Breno Leitao To: alpine-aports@lists.alpinelinux.org Cc: Breno Leitao Subject: [alpine-aports] [PATCH] Add support for ppc64le Date: Tue, 17 Jan 2017 14:30:31 -0200 X-Mailer: git-send-email 1.9.3 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17011716-0028-0000-0000-00000187BA5E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17011716-0029-0000-0000-000014860A9B Message-Id: <1484670631-10385-1-git-send-email-brenohl@br.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-01-17_10:,, 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-1612050000 definitions=main-1701170223 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: This is a patch that adds support for ppc64le platform. Currently, musl fails to build with long double as 128-bits, because POWER does not implement IEEE long double but IBM long double which causes the following error: unsupported long double type musl This patch just turns "long double" into "double" for ppc64le. --- main/musl/APKBUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/musl/APKBUILD b/main/musl/APKBUILD index d2f3a82..2631ebb 100644 --- a/main/musl/APKBUILD +++ b/main/musl/APKBUILD @@ -39,6 +39,7 @@ install_sysroot_headers() { case "$CARCH" in aarch64*) ARCH="aarch64" ;; arm*) ARCH="arm" ;; + ppc64*) ARCH="powerpc64" ;; x86) ARCH="i386" ;; x86_64) ARCH="x86_64" ;; mips*) ARCH="mips" ;; @@ -49,6 +50,11 @@ install_sysroot_headers() { build() { cd "$builddir" + # Consider "long double" 64-bits wide on Power + if [ $CARCH == "ppc64le" ]; then + CFLAGS="$CFLAGS -mlong-double-64" + fi + # provide minimal libssp_nonshared.a so we don't need libssp from gcc ${CROSS_COMPILE}gcc $CPPFLAGS $CFLAGS -c "$srcdir"/__stack_chk_fail_local.c -o __stack_chk_fail_local.o || return 1 ${CROSS_COMPILE}ar r libssp_nonshared.a __stack_chk_fail_local.o || return 1 -- 2.7.4 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---