summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild7
-rw-r--r--sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild7
-rw-r--r--sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild7
-rw-r--r--sys-fs/zfs-kmod/zfs-kmod-9999.ebuild7
4 files changed, 20 insertions, 8 deletions
diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild b/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild
index 68776243c4fb..e5b3df641c98 100644
--- a/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild
+++ b/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild
@@ -121,8 +121,12 @@ src_configure() {
filter-ldflags -Wl,*
+ # Set CROSS_COMPILE in the environment.
+ # This allows the user to override it via make.conf or via a local Makefile.
+ # https://bugs.gentoo.org/811600
+ export CROSS_COMPILE=${CROSS_COMPILE-${CHOST}-}
+
local myconf=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
--bindir="${EPREFIX}/bin"
--sbindir="${EPREFIX}/sbin"
@@ -139,7 +143,6 @@ src_compile() {
set_arch_to_kernel
myemakeargs=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
V=1
)
diff --git a/sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild
index 441c7831782d..74e838c5764e 100644
--- a/sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild
+++ b/sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild
@@ -122,8 +122,12 @@ src_configure() {
filter-ldflags -Wl,*
+ # Set CROSS_COMPILE in the environment.
+ # This allows the user to override it via make.conf or via a local Makefile.
+ # https://bugs.gentoo.org/811600
+ export CROSS_COMPILE=${CROSS_COMPILE-${CHOST}-}
+
local myconf=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
--bindir="${EPREFIX}/bin"
--sbindir="${EPREFIX}/sbin"
@@ -140,7 +144,6 @@ src_compile() {
set_arch_to_kernel
myemakeargs=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
V=1
)
diff --git a/sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild
index 894d7583448b..3aa1db85dc33 100644
--- a/sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild
+++ b/sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild
@@ -122,8 +122,12 @@ src_configure() {
filter-ldflags -Wl,*
+ # Set CROSS_COMPILE in the environment.
+ # This allows the user to override it via make.conf or via a local Makefile.
+ # https://bugs.gentoo.org/811600
+ export CROSS_COMPILE=${CROSS_COMPILE-${CHOST}-}
+
local myconf=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
--bindir="${EPREFIX}/bin"
--sbindir="${EPREFIX}/sbin"
@@ -140,7 +144,6 @@ src_compile() {
set_arch_to_kernel
myemakeargs=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
V=1
)
diff --git a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
index 894d7583448b..3aa1db85dc33 100644
--- a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
+++ b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
@@ -122,8 +122,12 @@ src_configure() {
filter-ldflags -Wl,*
+ # Set CROSS_COMPILE in the environment.
+ # This allows the user to override it via make.conf or via a local Makefile.
+ # https://bugs.gentoo.org/811600
+ export CROSS_COMPILE=${CROSS_COMPILE-${CHOST}-}
+
local myconf=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
--bindir="${EPREFIX}/bin"
--sbindir="${EPREFIX}/sbin"
@@ -140,7 +144,6 @@ src_compile() {
set_arch_to_kernel
myemakeargs=(
- CROSS_COMPILE="${CHOST}-"
HOSTCC="$(tc-getBUILD_CC)"
V=1
)