diff options
author | Sam James <sam@gentoo.org> | 2021-11-20 09:36:30 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-20 09:39:58 +0000 |
commit | 345f157f73c6640b6909e963fac7706df4716c63 (patch) | |
tree | fbdc6616dedb0b3af90f78efa4eaf4ae9967437c /sys-apps/lm-sensors | |
parent | profiles/package.mask: mask obsolete dev-ruby/rack-ssl (diff) | |
download | gentoo-345f157f73c6640b6909e963fac7706df4716c63.tar.gz gentoo-345f157f73c6640b6909e963fac7706df4716c63.tar.bz2 gentoo-345f157f73c6640b6909e963fac7706df4716c63.zip |
sys-apps/lm-sensors: fix cross-compilation
When CC and friends aren't set in src_install too, it tries
to build again! When they are set, it doesn't bother.
Closes: https://bugs.gentoo.org/799851
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/lm-sensors')
-rw-r--r-- | sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild b/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild index 1fcbdb4b3826..9fba4b6c08e2 100644 --- a/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild +++ b/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild @@ -134,7 +134,13 @@ multilib_src_compile() { } multilib_src_install() { + # We need to set CC and friends again here to avoid recompilation for cross + # bug #799851 emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + LD="$(tc-getLD)" \ + AR="$(tc-getAR)" \ DESTDIR="${ED}" \ PREFIX="/usr" \ MANDIR="/usr/share/man" \ |