commit: cacc52acc43245c2aa286f482e9d79f87ca632e3 Author: Matt Whitlock <gentoo <AT> mattwhitlock <DOT> name> AuthorDate: Tue Nov 12 17:43:46 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Dec 1 11:49:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cacc52ac
dev-libs/libsecp256k1: set build-machine toolchain environment The dev-libs/libsecp256k1 build uses AX_PROG_CC_FOR_BUILD from dev-build/autoconf-archive to detect the toolchain to use for compiling tools to run on the build machine during the build. Portage does not export the expected *_FOR_BUILD environment variables by default, so we have to call tc-export_build_env to set them. Closes: https://bugs.gentoo.org/729888 Signed-off-by: Matt Whitlock <gentoo <AT> mattwhitlock.name> Closes: https://github.com/gentoo/gentoo/pull/39227 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/libsecp256k1/libsecp256k1-0.5.1.ebuild | 6 +++++- dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.5.1.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.5.1.ebuild index c28846fde624..146e0e7adeac 100644 --- a/dev-libs/libsecp256k1/libsecp256k1-0.5.1.ebuild +++ b/dev-libs/libsecp256k1/libsecp256k1-0.5.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools +inherit autotools toolchain-funcs MyPN=secp256k1 DESCRIPTION="Optimized C library for EC operations on curve secp256k1" @@ -40,6 +40,10 @@ src_prepare() { } src_configure() { + # https://bugs.gentoo.org/729888 + tc-export_build_env BUILD_CC BUILD_CPP + export CC_FOR_BUILD="${BUILD_CC}" CPP_FOR_BUILD="${BUILD_CPP}" + local myeconfargs=( --disable-benchmark $(use_enable experimental) diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild index 0b1785939856..246a6bac38ed 100644 --- a/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild +++ b/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools +inherit autotools toolchain-funcs MyPN=secp256k1 DESCRIPTION="Optimized C library for EC operations on curve secp256k1" @@ -46,6 +46,10 @@ src_prepare() { } src_configure() { + # https://bugs.gentoo.org/729888 + tc-export_build_env BUILD_CC BUILD_CPP + export CC_FOR_BUILD="${BUILD_CC}" CPP_FOR_BUILD="${BUILD_CPP}" + local myeconfargs=( --disable-benchmark $(use_enable experimental)
