diff options
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index be8bfcddfafd..565a2f359488 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2261,6 +2261,13 @@ gcc_do_make() { STAGE1_CXXFLAGS="-O2" fi + # Workaround -march=native not working for stage1 with + # non-GCC (bug #933772). + if ! tc-is-gcc ; then + STAGE1_CFLAGS+=" $(test-flags-CC -fcf-protection=none)" + STAGE1_CXXFLAGS+=" $(test-flags-CXX -fcf-protection=none)" + fi + # We only want to use the system's CFLAGS if not building a # cross-compiler. STAGE1_CFLAGS=${STAGE1_CFLAGS-"$(get_abi_CFLAGS ${TARGET_DEFAULT_ABI}) ${CFLAGS}"} |