From 2ffc8682f178c60b95b45ba2135105e1f0074e4c Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 19 Feb 2020 09:11:16 -0600 Subject: gcc/binutils: Allow plugins to be enabled on cross-canadian toolchain As of GCC 8, plugin support is available with mingw. If the plugins are enabled in the regular binutils/gcc configurations, carry over that configuration with the mingw versions as well. When plugins are enabled, they produce a file called [plugin].dll.a. This causes the debugsrc processor to find the file and attempt to pull out dwarf information. However, we need to prevent this as the files are not ELF, but in Microsoft PE format, and trigger an error if processed. Signed-off-by: Mark Hatle Signed-off-by: Joshua Watt --- recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend | 2 +- recipes-devtools/gcc/gcc-cross-canadian_%.bbappend | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'recipes-devtools') diff --git a/recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend b/recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend index 026c932..5845fe0 100644 --- a/recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend +++ b/recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend @@ -1,4 +1,4 @@ -EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls" +EXTRA_OECONF_append_sdkmingw32 = " --disable-nls" LDFLAGS_append_sdkmingw32 = " -Wl,-static" DEPENDS_remove_sdkmingw32 = "nativesdk-gettext" diff --git a/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend b/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend index 888d610..9c0d828 100644 --- a/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend +++ b/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend @@ -1,6 +1,11 @@ INSANE_SKIP_${PN}_append_sdkmingw32 = " staticdev" -EXTRA_OECONF_append_sdkmingw32 = " --disable-nls --disable-lto" +EXTRA_OECONF_append_sdkmingw32 = " --disable-nls" LDFLAGS_append_sdkmingw32 = " -Wl,-static" EXEEXT_sdkmingw32 = ".exe" ELFUTILS_sdkmingw32 = "" DEPENDS_remove_sdkmingw32 = "nativesdk-gettext" + +# With plugins enabled, it will output 'dll.a' files that are mistaken +# for ELF which can trigger a failure. Simply avoid processing these +# to avoid the error condition. +INHIBIT_PACKAGE_DEBUG_SPLIT = '1' -- cgit v1.2.3-54-g00ecf