Closes: https://bugs.gentoo.org/718368
Signed-off-by: Robert Siebeck <gentoo.2019@r123.de>
Closes: https://github.com/gentoo/gentoo/pull/15424
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
app-misc/mime-types
"
+PATCHES=(
+ "${FILESDIR}/${P}-cc.patch"
+)
+
src_prepare() {
default
eautoreconf
+ tc-export CC RANLIB AR
+ export CC_FOR_BUILD=$(tc-getBUILD_CC)
}
src_configure() {
--- /dev/null
+--- ./imap/tools/Makefile 2020-04-19 23:45:13.080083548 +0200
++++ ./imap/tools/Makefile 2020-04-19 23:45:24.525083844 +0200
+@@ -21,7 +21,6 @@
+ # Internet: MRC@CAC.Washington.EDU
+
+
+-CC=cc
+ RM=rm -f
+
+
+--- ./imap/src/osdep/unix/Makefile 2020-04-19 23:54:55.454098598 +0200
++++ ./imap/src/osdep/unix/Makefile 2020-04-19 23:54:55.454098598 +0200
+@@ -132,10 +132,8 @@
+
+ # Commands possibly overridden by the individual port
+
+-ARRC=ar rc
+-CC=cc
++ARRC=$(AR) rc
+ LN=ln -s
+-RANLIB=ranlib
+
+
+ # Standard distribution build parameters