From 9270a303580a1dbb5f2a8b45bb7972afa8e62d7e Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Wed, 27 Oct 2021 10:53:48 -0400 Subject: Fix how gcc version detectioned to make visible CONFIG_GCC_PLUGINS Thanks to Kerin Millar. Bug: https://bugs.gentoo.org/814200 Signed-off-by: Mike Pagano --- 0000_README | 4 +++ 2910_fix-gcc-detection-method.patch | 54 +++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 2910_fix-gcc-detection-method.patch diff --git a/0000_README b/0000_README index 62f163c1..16f83981 100644 --- a/0000_README +++ b/0000_README @@ -363,6 +363,10 @@ Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch From: https://bugs.gentoo.org/710790 Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino +Patch: 2910_fix-gcc-detection-method.patch +From: https://bugs.gentoo.org/814200 +Desc: Fix how gcc version is detected to make visible CONFIG_GCC_PLUGINS. Thanks to Kerin Millar. + Patch: 2920_sign-file-patch-for-libressl.patch From: https://bugs.gentoo.org/717166 Desc: sign-file: full functionality with modern LibreSSL diff --git a/2910_fix-gcc-detection-method.patch b/2910_fix-gcc-detection-method.patch new file mode 100644 index 00000000..470f3afa --- /dev/null +++ b/2910_fix-gcc-detection-method.patch @@ -0,0 +1,54 @@ +diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh +deleted file mode 100755 +index b79fd0bea838..000000000000 +--- a/scripts/gcc-plugin.sh ++++ /dev/null +@@ -1,19 +0,0 @@ +-#!/bin/sh +-# SPDX-License-Identifier: GPL-2.0 +- +-set -e +- +-srctree=$(dirname "$0") +- +-gccplugins_dir=$($* -print-file-name=plugin) +- +-# we need a c++ compiler that supports the designated initializer GNU extension +-$HOSTCC -c -x c++ -std=gnu++98 - -fsyntax-only -I $srctree/gcc-plugins -I $gccplugins_dir/include 2>/dev/null <