summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-08-27 01:19:07 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-08-27 01:19:07 -0700
commitf93aa43e0e58a90b0b821b1d77b6c655a56d575a (patch)
tree05cad0d3afbca195852bc846b3d143a448299cdb /sys-fs/zfs-kmod
parentsys-fs/zfs: backport minimal useflag to 0.8.4 (diff)
downloadgentoo-f93aa43e0e58a90b0b821b1d77b6c655a56d575a.tar.gz
gentoo-f93aa43e0e58a90b0b821b1d77b6c655a56d575a.tar.bz2
gentoo-f93aa43e0e58a90b0b821b1d77b6c655a56d575a.zip
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@gentoo.org>
Diffstat (limited to 'sys-fs/zfs-kmod')
-rw-r--r--sys-fs/zfs-kmod/zfs-kmod-0.8.4-r1.ebuild8
1 files changed, 7 insertions, 1 deletions
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 5da2b7375143..59ea52ab658b 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[@]}"
}