sci-electronics/fasthenry: Fix ar

Closes: https://bugs.gentoo.org/750128
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2020-10-24 18:39:28 +03:00
parent a4d5afce5c
commit bd3e4d8ba4
2 changed files with 20 additions and 1 deletions

View File

@@ -23,10 +23,11 @@ S=${WORKDIR}/fasthenry-3.0wr
PATCHES=(
"${FILESDIR}/${P}-cflags.patch"
"${FILESDIR}/${P}-ldflags.patch"
"${FILESDIR}/${P}-ar.patch"
)
src_compile() {
tc-export CC
tc-export CC AR
emake all
}

View File

@@ -0,0 +1,18 @@
diff -ruN fasthenry-3.0wr.orig/src/sparse/Makefile fasthenry-3.0wr/src/sparse/Makefile
--- fasthenry-3.0wr.orig/src/sparse/Makefile 2020-10-24 18:35:15.348900086 +0300
+++ fasthenry-3.0wr/src/sparse/Makefile 2020-10-24 18:37:09.729921680 +0300
@@ -25,12 +25,12 @@
# $(CC) $(CFLAGS) -o $(DESTINATION) $(TESTO) $(LIBRARY) -lm
$(LIBRARY) : $(OFILES)
- ar r $(LIBRARY) $?
+ $(AR) r $(LIBRARY) $?
ranlib $(LIBRARY)
spice : $(LIBRARY) spSMP.o
cp $(LIBRARY) ../SMP.a
- ar r ../SMP.a spSMP.o
+ $(AR) r ../SMP.a spSMP.o
ranlib ../SMP.a
lint :