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 DD7F5139694 for ; Wed, 14 Jun 2017 23:16:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E11FA21C0A2; Wed, 14 Jun 2017 23:15:59 +0000 (UTC) Received: from tsukuyomi.43-1.org (tsukuyomi.43-1.org [IPv6:2a01:4f8:173:743::1:50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CD27E0BE7 for ; Wed, 14 Jun 2017 23:15:59 +0000 (UTC) From: Matthias Maier To: gentoo-dev@lists.gentoo.org Cc: toolchain@gentoo.org, embedded@gentoo.org Subject: [gentoo-dev] [PATCH 4/5] eclass/toolchain-glibc.eclass: use tc-enables-pie instead of gcc-specs-pie Date: Wed, 14 Jun 2017 18:15:40 -0500 Message-Id: <20170614231541.29719-5-tamiko@gentoo.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170614231541.29719-1-tamiko@gentoo.org> References: <20170614231541.29719-1-tamiko@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: c2db819f-abe4-4f75-b1d4-c6c486026953 X-Archives-Hash: 63cae912064631eea140761fa4c5f679 --- eclass/toolchain-glibc.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass index 5be31eb193..270c9cdac7 100644 --- a/eclass/toolchain-glibc.eclass +++ b/eclass/toolchain-glibc.eclass @@ -266,7 +266,7 @@ setup_flags() { tc-enables-ssp && append-flags $(test-flags -fno-stack-protector) fi - if use hardened && gcc-specs-pie ; then + if use hardened && tc-enables-pie ; then # Force PIC macro definition for all compilations since they're all # either -fPIC or -fPIE with the default-PIE compiler. append-cppflags -DPIC @@ -535,7 +535,7 @@ toolchain-glibc_pkg_pretend() { ewarn "hypervisor, which is probably not what you want." fi - use hardened && ! gcc-specs-pie && \ + use hardened && ! tc-enables-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" # Make sure host system is up to date #394453 -- 2.13.0