From ca144cbf71b2faf598564847378fa40a0090d67c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 15 Oct 2022 19:51:12 +0100 Subject: gentoo auto-resync : 15:10:2022 - 19:51:12 --- sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild') diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild index 8cd9318c3373..3f390bf67ca3 100644 --- a/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild +++ b/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild @@ -167,6 +167,7 @@ get_xcpkgconfigdir() { multilib_src_configure() { local -a myconf=( + --host=${CTARGET} --disable-werror --libdir=$(get_xclibdir) --with-pkgconfigdir=$(get_xcpkgconfigdir) @@ -174,6 +175,16 @@ multilib_src_configure() { --mandir="$(get_xcmandir)" ) + tc-export PKG_CONFIG + + if is_cross; then + if tc-is-clang; then + export CC="${CTARGET}-clang" + else + export CC="${CTARGET}-gcc" + fi + fi + if use elibc_musl; then # musl declares getcontext and swapcontext in ucontext.h, # but does not implement them in libc. -- cgit v1.2.3