diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-09-05 11:47:02 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-09-07 13:31:57 -0400 |
commit | b9353f8086431901cbe7593b1da7148134ae2eac (patch) | |
tree | 9b455ab4a744110251729ddac674cd2d78d97db8 /sys-fs/zfs-kmod | |
parent | sys-boot/grub: enable py3.10 and disable py2.7, py3.6, py3.7 (diff) | |
download | gentoo-b9353f8086431901cbe7593b1da7148134ae2eac.tar.gz gentoo-b9353f8086431901cbe7593b1da7148134ae2eac.tar.bz2 gentoo-b9353f8086431901cbe7593b1da7148134ae2eac.zip |
sys-fs/zfs-kmod: set CROSS_COMPILE in the environment
This allows it to be overriden in a local Makefile.
Closes: https://bugs.gentoo.org/811600
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs/zfs-kmod')
-rw-r--r-- | sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild | 7 | ||||
-rw-r--r-- | sys-fs/zfs-kmod/zfs-kmod-2.0.5.ebuild | 7 | ||||
-rw-r--r-- | sys-fs/zfs-kmod/zfs-kmod-2.1.0.ebuild | 7 | ||||
-rw-r--r-- | sys-fs/zfs-kmod/zfs-kmod-9999.ebuild | 7 |
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 ) |