public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] media-libs/freetype: fix GCC usage during configure
@ 2022-01-07 13:08 Adrian Ratiu
  2022-01-08  5:12 ` [gentoo-dev] Mailing list for ebuild patches? (Was: Re: [PATCH] media-libs/freetype: fix GCC usage during configure) Sam James
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Ratiu @ 2022-01-07 13:08 UTC (permalink / raw
  To: gentoo-dev; +Cc: vapier, Lars Wendler, Sam James

If $CC_BUILD is not set, configure defaults to GCC for some
of its tests causing clang builds to use a mixture of the
two compilers instead of using just clang consistently.

Here is an example before and after setting CC_BUILD (this
is actually from ChromiumOS where this was first detected).

before:

checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for suffix of native executables...

after:

checking for x86_64-pc-linux-gnu-gcc... x86_64-cros-linux-gnu-clang
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-cros-linux-gnu-clang
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-cros-linux-gnu-clang
checking for suffix of native executables...

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
---
 media-libs/freetype/freetype-2.11.0-r1.ebuild | 2 ++
 media-libs/freetype/freetype-2.11.0-r2.ebuild | 2 ++
 media-libs/freetype/freetype-2.11.1.ebuild    | 2 ++
 media-libs/freetype/freetype-9999.ebuild      | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/media-libs/freetype/freetype-2.11.0-r1.ebuild b/media-libs/freetype/freetype-2.11.0-r1.ebuild
index b4e9e81a703..c9d88a7e108 100644
--- a/media-libs/freetype/freetype-2.11.0-r1.ebuild
+++ b/media-libs/freetype/freetype-2.11.0-r1.ebuild
@@ -203,6 +203,8 @@ multilib_src_configure() {
 		*) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;;
 	esac
 
+	export CC_BUILD="$(tc-getBUILD_CC)"
+
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
diff --git a/media-libs/freetype/freetype-2.11.0-r2.ebuild b/media-libs/freetype/freetype-2.11.0-r2.ebuild
index 658322e92af..27f4cfde1ab 100644
--- a/media-libs/freetype/freetype-2.11.0-r2.ebuild
+++ b/media-libs/freetype/freetype-2.11.0-r2.ebuild
@@ -204,6 +204,8 @@ multilib_src_configure() {
 		*) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;;
 	esac
 
+	export CC_BUILD="$(tc-getBUILD_CC)"
+
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
diff --git a/media-libs/freetype/freetype-2.11.1.ebuild b/media-libs/freetype/freetype-2.11.1.ebuild
index d0c71e729b9..7e891890302 100644
--- a/media-libs/freetype/freetype-2.11.1.ebuild
+++ b/media-libs/freetype/freetype-2.11.1.ebuild
@@ -195,6 +195,8 @@ multilib_src_configure() {
 		*) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;;
 	esac
 
+	export CC_BUILD="$(tc-getBUILD_CC)"
+
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
diff --git a/media-libs/freetype/freetype-9999.ebuild b/media-libs/freetype/freetype-9999.ebuild
index d0c71e729b9..7e891890302 100644
--- a/media-libs/freetype/freetype-9999.ebuild
+++ b/media-libs/freetype/freetype-9999.ebuild
@@ -195,6 +195,8 @@ multilib_src_configure() {
 		*) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;;
 	esac
 
+	export CC_BUILD="$(tc-getBUILD_CC)"
+
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-17 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 13:08 [gentoo-dev] [PATCH] media-libs/freetype: fix GCC usage during configure Adrian Ratiu
2022-01-08  5:12 ` [gentoo-dev] Mailing list for ebuild patches? (Was: Re: [PATCH] media-libs/freetype: fix GCC usage during configure) Sam James
2022-01-08  6:15   ` Anna Vyalkova
2022-01-17 16:10   ` Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox