mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
sci-mathematics/mccs: respect AR
Closes: https://bugs.gentoo.org/842333 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
11
sci-mathematics/mccs/files/mccs-1.1-respect-AR.patch
Normal file
11
sci-mathematics/mccs/files/mccs-1.1-respect-AR.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -160,7 +160,7 @@
|
||||
#----------------------------------------------------------------------------------
|
||||
|
||||
libccudf.a: $(OBJDIR)/cudf.tab.o $(OBJDIR)/cudf.l.o $(OBJDIR)/cudf_hash_table.o $(OBJDIR)/cudf_tools.o
|
||||
- ar rcs libccudf.a $(OBJDIR)/cudf.tab.o $(OBJDIR)/cudf.l.o $(OBJDIR)/cudf_hash_table.o $(OBJDIR)/cudf_tools.o
|
||||
+ $(AR) rcs libccudf.a $(OBJDIR)/cudf.tab.o $(OBJDIR)/cudf.l.o $(OBJDIR)/cudf_hash_table.o $(OBJDIR)/cudf_tools.o
|
||||
|
||||
libccudf.so: $(OBJDIR)/cudf.tab.o $(OBJDIR)/cudf.l.o $(OBJDIR)/cudf_hash_table.o $(OBJDIR)/cudf_tools.o
|
||||
$(CCC) -shared -Wl,-soname,libccudf.so -o libccudf.so \
|
||||
@@ -39,6 +39,7 @@ src_prepare() {
|
||||
eapply "${FILESDIR}/${P}-respect-flags.patch"
|
||||
eapply "${FILESDIR}/${P}-glpk.patch"
|
||||
eapply "${FILESDIR}/${P}-fix-Wl.patch"
|
||||
eapply "${FILESDIR}/${P}-respect-AR.patch"
|
||||
eapply_user
|
||||
|
||||
if use glpk; then
|
||||
@@ -55,7 +56,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CXX
|
||||
tc-export AR CXX
|
||||
append-cxxflags "-std=c++14"
|
||||
MAKEOPTS="-j1" emake libccudf.so
|
||||
MAKEOPTS="-j1" emake mccs
|
||||
|
||||
Reference in New Issue
Block a user