-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sci-libs/superlu_mt: fix int64 not taking effect
upstream uses unconventional variables names. int64 adds _LONG_INT to PREDEFS. PREDEFS seems to be a synonym of CPPFLAGS and used sparingly to be appended to CFLAGS. It should be passed to $(CC) explicitly for int64 to take effect. EXAMLE/Makefile should include ../make.in, which is the same in upstream. Closes: https://bugs.gentoo.org/817680 Signed-off-by: Alex Fan <alex.fan.q@gmail.com>
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
sci-libs/superlu_mt/files/superlu_mt-3.1-fix-predefs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/INSTALL/Makefile b/INSTALL/Makefile | ||
index 55977b0..fe565e5 100644 | ||
--- a/INSTALL/Makefile | ||
+++ b/INSTALL/Makefile | ||
@@ -19,7 +19,7 @@ slamch.o: slamch.c ; $(CC) $(NOOPTS) -c $< | ||
dlamch.o: dlamch.c ; $(CC) $(NOOPTS) -c $< | ||
superlu_timer.o: superlu_timer.c; $(CC) $(NOOPTS) -c $< | ||
|
||
-.c.o: ; $(CC) $(CFLAGS) -c $< | ||
+.c.o: ; $(CC) $(PREDEFS) $(CFLAGS) -c $< | ||
|
||
clean: | ||
rm -f *.o test* *.out | ||
diff --git a/SRC/Makefile b/SRC/Makefile | ||
index 81209e5..42dd28b 100644 | ||
--- a/SRC/Makefile | ||
+++ b/SRC/Makefile | ||
@@ -130,7 +130,7 @@ await.o: await.c | ||
$(CC) -c $(NOOPTS) $< $(VERBOSE) | ||
|
||
.c.o: | ||
- $(CC) $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE) | ||
+ $(CC) ${PREDEFS} $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE) | ||
|
||
clean: | ||
rm -f *.o core ../lib/$(SUPERLULIB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters