gcc/binutils: Allow plugins to be enabled on cross-canadian toolchain
PATCH 1/1 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 <[email protected]>
--- .../binutils/binutils-cross-canadian_2.%.bbappend | 2 +- recipes-devtools/gcc/gcc-cross-canadian_%.bbappend | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-)
recipes-devtools/binutils/binutils-cross-canadian_2.%.bbappend +1 -1
@@ -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"
recipes-devtools/gcc/gcc-cross-canadian_%.bbappend +6 -1
@@ -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'
Signature · 1 line
2.17.1