summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.32.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.32.bb b/meta/recipes-devtools/binutils/binutils_2.32.bb
index 51a9748906..89315915c4 100644
--- a/meta/recipes-devtools/binutils/binutils_2.32.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.32.bb
@@ -20,6 +20,11 @@ EXTRA_OECONF_class-native = "--enable-targets=all \
20 --enable-install-libbfd \ 20 --enable-install-libbfd \
21 --disable-werror" 21 --disable-werror"
22 22
23# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
24# So remove -O2 and use -Os as workaround
25SELECTED_OPTIMIZATION_remove_mipsarch = "-O2"
26SELECTED_OPTIMIZATION_append_mipsarch = " -Os"
27
23do_install_class-native () { 28do_install_class-native () {
24 autotools_do_install 29 autotools_do_install
25 30
@@ -47,3 +52,4 @@ PACKAGE_BEFORE_PN += "libbfd"
47FILES_libbfd = "${libdir}/libbfd-*.so" 52FILES_libbfd = "${libdir}/libbfd-*.so"
48 53
49BBCLASSEXTEND = "native nativesdk" 54BBCLASSEXTEND = "native nativesdk"
55