commit: ead5f36b5dca164c24d1422a341a9e7226b38348 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jan 21 03:11:45 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 21 03:11:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ead5f36b
dev-libs/elfutils: handle asan/ubsan We need to pass arguments to configure if -fsanitize=address/undefined as there's some unaligned accesses which need to be disabled. Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/elfutils/elfutils-0.188.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-libs/elfutils/elfutils-0.188.ebuild b/dev-libs/elfutils/elfutils-0.188.ebuild index 77b5fbb7fbda..b47d779db744 100644 --- a/dev-libs/elfutils/elfutils-0.188.ebuild +++ b/dev-libs/elfutils/elfutils-0.188.ebuild @@ -1,4 +1,4 @@ -# Copyright 2003-2022 Gentoo Authors +# Copyright 2003-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -101,6 +101,10 @@ multilib_src_configure() { $(use_with zstd) ) + # Needed because sets alignment macro + is-flagq -fsanitize=address && myeconfargs+=( --enable-sanitize-address ) + is-flagq -fsanitize=undefined && myeconfargs+=( --enable-sanitize-undefined ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" }