diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass index 458105d7a5..693a356d54 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass @@ -695,6 +695,7 @@ toolchain_src_prepare() { # Workaround -march=native not working for stage1 with non-GCC (bug #933772). if ! tc-is-gcc && [[ "${CFLAGS}${CXXFLAGS}" == *-march=native* ]] ; then CLANG_DISABLE_CET_HACK=1 + filter-flags '-march=native' fi if ! use vanilla ; then