summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2022-01-07 15:08:13 +0200
committerLars Wendler <polynomial-c@gentoo.org>2022-01-07 22:27:08 +0100
commit355c5b5715ffcf787c421d03209642d2823cf1f7 (patch)
treec2c65e9230df4dc9522f651389edda7ab2d8e777 /media-libs
parentnet-libs/libtorrent-rasterbar: Keyword 2.0.5 arm64, #830688 (diff)
downloadgentoo-355c5b5715ffcf787c421d03209642d2823cf1f7.tar.gz
gentoo-355c5b5715ffcf787c421d03209642d2823cf1f7.tar.bz2
gentoo-355c5b5715ffcf787c421d03209642d2823cf1f7.zip
media-libs/freetype: fix GCC usage during configure
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> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/freetype/freetype-2.11.0-r1.ebuild2
-rw-r--r--media-libs/freetype/freetype-2.11.0-r2.ebuild2
-rw-r--r--media-libs/freetype/freetype-2.11.1.ebuild2
-rw-r--r--media-libs/freetype/freetype-9999.ebuild2
4 files changed, 8 insertions, 0 deletions
diff --git a/media-libs/freetype/freetype-2.11.0-r1.ebuild b/media-libs/freetype/freetype-2.11.0-r1.ebuild
index b4e9e81a7039..c9d88a7e1080 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 658322e92afa..27f4cfde1ab2 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 d0c71e729b9c..7e8918903023 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 d0c71e729b9c..7e8918903023 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[@]}"
}