X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from smtp-1.adminflex.de (smtp-1.adminflex.de [84.38.79.71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E2EE8DC00A7 for ; Sat, 23 Nov 2013 13:27:15 +0000 (UTC) Received: from 91-66-231-240-dynip.superkabel.de ([91.66.231.240] helo=[192.168.178.35]) by smtp-1.adminflex.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1VkEFz-0006RD-4Q for alpine-devel@lists.alpinelinux.org; Sat, 23 Nov 2013 14:32:23 +0000 Message-ID: <5290AD0F.2010203@port-zero.com> Date: Sat, 23 Nov 2013 14:26:39 +0100 From: "Leslie P. Polzer | PORT ZERO" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] main/gcc: fix Ada -fno-stack-check handling Content-Type: multipart/mixed; boundary="------------060604020303030208020209" This is a multi-part message in MIME format. --------------060604020303030208020209 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, the old hack for this was probably too hacky; at least it no longer worked for me when cross-compiling to armhf-musl. Attached changeset replaces it with a cleaner approach that works. Cheers, Leslie --=20 Dipl.Ing.(BA) Leslie P. Polzer | CTO - PORT ZERO UG (haftungsbeschr=E4nkt) Softwareentwicklung & IT Engineering Adalbertstra=DFe 7/8 10999 Berlin Tel.: +49 (0)30 - 69 200 907 - 0 Fax: +49 (0)30 - 69 200 907 - 9 http://www.port-zero.com --------------060604020303030208020209 Content-Type: text/x-patch; name="0001-main-gcc-update-fix-to-compile-Ada-with-fno-stack-ch.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-main-gcc-update-fix-to-compile-Ada-with-fno-stack-ch.pa"; filename*1="tch" >From df791efe3767f42f4da6cf0ff6541c4b4518973a Mon Sep 17 00:00:00 2001 From: "Leslie P. Polzer" Date: Sat, 23 Nov 2013 13:59:16 +0100 Subject: [PATCH] main/gcc: update fix to compile Ada with -fno-stack-check. --- main/gcc/APKBUILD | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index 45c7609..ae7b1f4 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -13,7 +13,7 @@ _cross="" && _cross="-$CTARGET" pkgname="$pkgname$_cross" -pkgrel=1 +pkgrel=2 pkgdesc="The GNU Compiler Collection" url="http://gcc.gnu.org" arch="all" @@ -228,10 +228,7 @@ prepare() { # fix ada bootstrap # piepatches adds -fstack-check to spec which breaks ada bootstrap # TODO: upstream this to piepatches - sed -i -e 's/stage1_cflags="$stage1_cflags -fno-stack-protector"/stage1_cflags="$stage1_cflags -fno-stack-protector -fno-stack-check"/g' \ - configure - sed -i -e 's/^ESP_NOSSP_CFLAGS = -fno-stack-protector$/ESP_NOSSP_CFLAGS = -fno-stack-protector -fno-stack-check/g' \ - Makefile.in + export ADA_CFLAGS='-fno-stack-check' # genautomata crashes with a "Bus Error" when compiled with PIC # mostly affecting cross-builds as on native build bootstrapping -- 1.8.4.3 --------------060604020303030208020209-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---