mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
sci-libs/meschach: fix CC
Closes: https://bugs.gentoo.org/785196 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
This commit is contained in:
29
sci-libs/meschach/files/configure.patch
Normal file
29
sci-libs/meschach/files/configure.patch
Normal file
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user