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-r1.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys-libs/libxcrypt/libxcrypt-4.4.28-r1.ebuild') diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.28-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.28-r1.ebuild index c55c58c004b0..7c7340f29a7b 100644 --- a/sys-libs/libxcrypt/libxcrypt-4.4.28-r1.ebuild +++ b/sys-libs/libxcrypt/libxcrypt-4.4.28-r1.ebuild @@ -165,6 +165,7 @@ get_xcpkgconfigdir() { multilib_src_configure() { local -a myconf=( + --host=${CTARGET} --disable-werror --libdir=$(get_xclibdir) --with-pkgconfigdir=$(get_xcpkgconfigdir) @@ -196,6 +197,16 @@ multilib_src_configure() { *) die "Unexpected MULTIBUILD_ID: ${MULTIBUILD_ID}";; esac + tc-export PKG_CONFIG + + if is_cross; then + if tc-is-clang; then + export CC="${CTARGET}-clang" + else + export CC="${CTARGET}-gcc" + fi + fi + ECONF_SOURCE="${S}" econf "${myconf[@]}" } -- cgit v1.2.3