commit:     f93aa43e0e58a90b0b821b1d77b6c655a56d575a
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 08:19:07 2020 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 08:19:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f93aa43e

sys-fs/zfs-kmod: backport CC/LD fix to 0.8.4

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild 
b/sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild
index 5da2b737514..59ea52ab658 100644
--- a/sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild
+++ b/sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild
@@ -104,6 +104,8 @@ src_configure() {
        filter-ldflags -Wl,*
 
        local myconf=(
+               CROSS_COMPILE="${CHOST}-"
+               HOSTCC="$(tc-getBUILD_CC)"
                --bindir="${EPREFIX}/bin"
                --sbindir="${EPREFIX}/sbin"
                --with-config=kernel
@@ -118,7 +120,11 @@ src_configure() {
 src_compile() {
        set_arch_to_kernel
 
-       myemakeargs=( V=1 )
+       myemakeargs=(
+               CROSS_COMPILE="${CHOST}-"
+               HOSTCC="$(tc-getBUILD_CC)"
+               V=1
+       )
 
        emake "${myemakeargs[@]}"
 }

Reply via email to