aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Vyalkova <cyber@sysrq.in>2021-05-16 18:43:18 +0500
committerAnna Vyalkova <cyber@sysrq.in>2021-05-16 19:05:02 +0500
commitdd6ff2f5c2f7887079934c95554adf61efb62506 (patch)
tree1992c0d7a608da378232d2280e2cc7d53df65911 /sci-libs
parentnet-wireless/rtl8821cu: fix CC (diff)
downloadguru-dd6ff2f5c2f7887079934c95554adf61efb62506.tar.gz
guru-dd6ff2f5c2f7887079934c95554adf61efb62506.tar.bz2
guru-dd6ff2f5c2f7887079934c95554adf61efb62506.zip
sci-libs/meschach: fix CC
Closes: https://bugs.gentoo.org/785196 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/meschach/files/configure.patch29
-rw-r--r--sci-libs/meschach/meschach-1.2b.ebuild3
2 files changed, 31 insertions, 1 deletions
diff --git a/sci-libs/meschach/files/configure.patch b/sci-libs/meschach/files/configure.patch
new file mode 100644
index 000000000..858196846
--- /dev/null
+++ b/sci-libs/meschach/files/configure.patch
@@ -0,0 +1,29 @@
+Bug: https://bugs.gentoo.org/785196
+
+--- a/configure.in
++++ b/configure.in
+@@ -9,16 +9,6 @@
+ [extern int test (int i, double x);],
+ AC_DEFINE(HAVE_PROTOTYPES))])dnl
+ dnl
+-dnl Brook Milligan's compiler check
+-dnl Check for the sun ansi c compiler, acc
+-define(LOCAL_PROG_ACC,
+-[AC_BEFORE([$0], [AC_PROG_CPP])AC_PROVIDE([$0])dnl
+-AC_PROGRAM_CHECK(CC, acc, acc, "")])dnl
+-dnl David Stewart's modified compiler check
+-define(LOCAL_PROG_CC,
+-[AC_BEFORE([$0], [AC_PROG_CPP])AC_PROVIDE([$0])dnl
+-AC_PROGRAM_CHECK(CC, acc, acc, cc)])dnl
+-dnl
+ dnl
+ dnl
+ dnl ----------------------------------------------------------------------
+@@ -29,7 +19,6 @@
+ PROGS=""
+ AC_SUBST(PROGS)dnl
+ LOCAL_PROG_ACC
+-AC_PROGRAM_CHECK(CC, cc, cc, gcc)
+ dnl AC_PROG_CC
+ AC_PROG_CPP
+ AC_AIX
diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild
index 2f534ad10..b1f5b41bd 100644
--- a/sci-libs/meschach/meschach-1.2b.ebuild
+++ b/sci-libs/meschach/meschach-1.2b.ebuild
@@ -27,13 +27,14 @@ PATCHES=(
"${WORKDIR}/debian/patches/${PN}_${PV}-13.diff"
"${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff"
"${FILESDIR}/makefile.patch"
+ "${FILESDIR}/configure.patch"
)
src_prepare() {
default
use old && sed -i -- 's/all: shared static/all: oldpart shared static/g' makefile.in
mv configure.in configure.ac || die
- export AR="$(tc-getAR)"
+ tc-export AR CC
eautoreconf
}