From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 10D5D138334 for ; Thu, 7 Jun 2018 10:49:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2ED2DE0C9E; Thu, 7 Jun 2018 10:49:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3543E0C9E for ; Thu, 7 Jun 2018 10:49:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 82216335CA5 for ; Thu, 7 Jun 2018 10:49:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08CFE3E for ; Thu, 7 Jun 2018 10:49:48 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1528368571.108a86ab528461f7feb43e967a5d94b87921e6f2.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: sys-devel/gcc/gcc-7.3.0-r3.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 108a86ab528461f7feb43e967a5d94b87921e6f2 X-VCS-Branch: master Date: Thu, 7 Jun 2018 10:49:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8def1b10-d1f9-4cb5-9b0a-fac60462d861 X-Archives-Hash: 56daff44ec122fb978fa7b4ed8499701 commit: 108a86ab528461f7feb43e967a5d94b87921e6f2 Author: Fabian Groffen gentoo org> AuthorDate: Thu Jun 7 10:49:31 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Jun 7 10:49:31 2018 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=108a86ab sys-devel/gcc: fix usage of -no-pie and -fno-PIE, bug #657522 Closes: https://bugs.gentoo.org/657522 Package-Manager: Portage-2.3.40.1-prefix, Repoman-2.3.9 sys-devel/gcc/gcc-7.3.0-r3.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys-devel/gcc/gcc-7.3.0-r3.ebuild b/sys-devel/gcc/gcc-7.3.0-r3.ebuild index 1448758404..8d4055ed5e 100644 --- a/sys-devel/gcc/gcc-7.3.0-r3.ebuild +++ b/sys-devel/gcc/gcc-7.3.0-r3.ebuild @@ -46,6 +46,17 @@ src_configure() { powerpc*-darwin*) # bug #381179 filter-flags "-mcpu=*" "-mtune=*" + # bug #657522 + # A bug in configure checks whether -no-pie works, but the + # compiler doesn't pass -no-pie onto the linker if -fno-PIE + # isn't passed, so the configure check always finds -no-pie + # is accepted. (Likewise, when -fno-PIE is passed, the + # compiler passes -no_pie onto the linker.) + # Since our linker doesn't grok this, avoid above checks to + # be run + # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked) + export gcc_cv_c_no_fpie=no + export gcc_cv_no_pie=no ;; *-solaris*) # todo: some magic for native vs. GNU linking?