From c439961a06625b27d39d683beee00e8c3a54005f Mon Sep 17 00:00:00 2001 From: Oskari Pirhonen Date: Wed, 12 Jan 2022 23:08:03 -0600 Subject: crossdev: use package.use.{mask,force} for pie/ssp A hardened host profile forces the pie and ssp USE flags which is overriding GUSE="-pie -ssp". Use package.use.mask and package.use.force to control the flags. Closes: https://bugs.gentoo.org/831165 Signed-off-by: Oskari Pirhonen Signed-off-by: Sam James --- crossdev | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) (limited to 'crossdev') diff --git a/crossdev b/crossdev index e2e01e8..fcf6a65 100755 --- a/crossdev +++ b/crossdev @@ -409,9 +409,11 @@ parse_target() { pie_support=no ;; esac + # Running a hardened profile on the host forces pie #831165 if [[ $pie_support = "no" ]]; then # pie is >=gcc-6, nopie is =gcc-6, nossp is