Created attachment 406028 [details, diff] patch to fix fsanitize-whitelisting in strip-flags The flag-o-matic.eclass whitelists -fsanitize flags for the strip-flags() function (see #530070). However it doesn't work. This is the whitelisting: ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*" The strip-flags function however will split flags at every = sign before doing the check: local flag=${x%%=*} Therefore the whitelisting doesn't work that way. The simplest way to fix it is to whitelist it without the =-char, change it to: ALLOWED_FLAGS+=" -fstack-protector* -fsanitize*" Patch attached, please apply.
gcc also has flags like -fsanitize-recover and -fsanitize-undefined-trap-on-error, so using a glob enables those http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ab0182a2d872bade4c4ead9ef189a80b0925df