diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2024-07-23 17:21:07 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2024-08-06 12:15:43 +0200 |
commit | e0a308d54529e7cf11df4c9839024fe8187f82ee (patch) | |
tree | b7e53e89a4fac43bdc3b1ccd5999125fdd4dedb1 /dev-util/perf | |
parent | mail-client/evolution: drop 3.52.1 (diff) | |
download | gentoo-e0a308d54529e7cf11df4c9839024fe8187f82ee.tar.gz gentoo-e0a308d54529e7cf11df4c9839024fe8187f82ee.tar.bz2 gentoo-e0a308d54529e7cf11df4c9839024fe8187f82ee.zip |
dev-util/perf: Use cross CLANG for compiler feature verification
The build system of perf checks the clang version in order to set
correct compilation flags. However, it defaults to the non-prefixed
clang invocation, which fails during cross-compilation.
Set CLANG to point to the fully qualified host clang.
The build system will only use it if it’s actually available.
Closes: https://bugs.gentoo.org/936558
Closes: https://github.com/gentoo/gentoo/pull/37688
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-util/perf')
-rw-r--r-- | dev-util/perf/perf-6.10.ebuild | 1 | ||||
-rw-r--r-- | dev-util/perf/perf-6.3.ebuild | 1 | ||||
-rw-r--r-- | dev-util/perf/perf-6.7.ebuild | 1 | ||||
-rw-r--r-- | dev-util/perf/perf-6.8.ebuild | 1 | ||||
-rw-r--r-- | dev-util/perf/perf-6.9.ebuild | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/dev-util/perf/perf-6.10.ebuild b/dev-util/perf/perf-6.10.ebuild index 3a49940473e4..bf643c35c209 100644 --- a/dev-util/perf/perf-6.10.ebuild +++ b/dev-util/perf/perf-6.10.ebuild @@ -247,6 +247,7 @@ perf_make() { V=1 VF=1 HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="${linker}" NM="$(tc-getNM)" + CLANG="${CHOST}-clang" PKG_CONFIG="$(tc-getPKG_CONFIG)" prefix="${EPREFIX}/usr" bindir_relative="bin" tipdir="share/doc/${PF}" diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild index 80e9fe676047..63546a59a6ca 100644 --- a/dev-util/perf/perf-6.3.ebuild +++ b/dev-util/perf/perf-6.3.ebuild @@ -196,6 +196,7 @@ perf_make() { emake V=1 VF=1 \ HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" \ CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="$(tc-getLD)" NM="$(tc-getNM)" \ + CLANG="${CHOST}-clang" \ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ prefix="${EPREFIX}/usr" bindir_relative="bin" \ tipdir="share/doc/${PF}" \ diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild index 5d0dd06b320d..f07ddebfbf7d 100644 --- a/dev-util/perf/perf-6.7.ebuild +++ b/dev-util/perf/perf-6.7.ebuild @@ -247,6 +247,7 @@ perf_make() { V=1 VF=1 HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="${linker}" NM="$(tc-getNM)" + CLANG="${CHOST}-clang" PKG_CONFIG="$(tc-getPKG_CONFIG)" prefix="${EPREFIX}/usr" bindir_relative="bin" tipdir="share/doc/${PF}" diff --git a/dev-util/perf/perf-6.8.ebuild b/dev-util/perf/perf-6.8.ebuild index 71d7382d4545..9ebf28d8aa78 100644 --- a/dev-util/perf/perf-6.8.ebuild +++ b/dev-util/perf/perf-6.8.ebuild @@ -248,6 +248,7 @@ perf_make() { V=1 VF=1 HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="${linker}" NM="$(tc-getNM)" + CLANG="${CHOST}-clang" PKG_CONFIG="$(tc-getPKG_CONFIG)" prefix="${EPREFIX}/usr" bindir_relative="bin" tipdir="share/doc/${PF}" diff --git a/dev-util/perf/perf-6.9.ebuild b/dev-util/perf/perf-6.9.ebuild index b371ff4a861a..e5858270dcbc 100644 --- a/dev-util/perf/perf-6.9.ebuild +++ b/dev-util/perf/perf-6.9.ebuild @@ -247,6 +247,7 @@ perf_make() { V=1 VF=1 HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="${linker}" NM="$(tc-getNM)" + CLANG="${CHOST}-clang" PKG_CONFIG="$(tc-getPKG_CONFIG)" prefix="${EPREFIX}/usr" bindir_relative="bin" tipdir="share/doc/${PF}" |