diff options
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.32.bb | 6 |
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 | ||
25 | SELECTED_OPTIMIZATION_remove_mipsarch = "-O2" | ||
26 | SELECTED_OPTIMIZATION_append_mipsarch = " -Os" | ||
27 | |||
23 | do_install_class-native () { | 28 | do_install_class-native () { |
24 | autotools_do_install | 29 | autotools_do_install |
25 | 30 | ||
@@ -47,3 +52,4 @@ PACKAGE_BEFORE_PN += "libbfd" | |||
47 | FILES_libbfd = "${libdir}/libbfd-*.so" | 52 | FILES_libbfd = "${libdir}/libbfd-*.so" |
48 | 53 | ||
49 | BBCLASSEXTEND = "native nativesdk" | 54 | BBCLASSEXTEND = "native nativesdk" |
55 | |||