diff options
author | Sam James <sam@gentoo.org> | 2023-01-21 03:11:45 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-21 03:11:45 +0000 |
commit | ead5f36b5dca164c24d1422a341a9e7226b38348 (patch) | |
tree | eee33fa4de11897f8e06a3f83a02452cce165e42 /dev-libs/elfutils | |
parent | sys-devel/gcc: add 11.3.1_p20230120 (diff) | |
download | gentoo-ead5f36b5dca164c24d1422a341a9e7226b38348.tar.gz gentoo-ead5f36b5dca164c24d1422a341a9e7226b38348.tar.bz2 gentoo-ead5f36b5dca164c24d1422a341a9e7226b38348.zip |
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@gentoo.org>
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r-- | dev-libs/elfutils/elfutils-0.188.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
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[@]}" } |