Skip to content

Commit

Permalink
sci-libs/superlu_mt: fix int64 not taking effect
Browse files Browse the repository at this point in the history
PREDEFS needs to be appended to CFLAGS
EXAMPLE/Makefile should include ../make.inc

Closes: https://bugs.gentoo.org/817680
Signed-off-by: Alex Fan <alex.fan.q@gmail.com>
  • Loading branch information
alexfanqi committed Nov 24, 2021
1 parent 49163da commit 000c4c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sci-libs/superlu_mt/superlu_mt-3.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ src_prepare() {
RANLIB=$(tc-getRANLIB)
PREDEFS=${CPPFLAGS} -DUSE_VENDOR_BLAS -DPRNTlevel=0 -DDEBUGlevel=0 $(use int64 && echo -D_LONGINT)
CDEFS=-DAdd_
CFLAGS=${CFLAGS} ${CTHREADS} \$(PIC)
CFLAGS=\$(PREDEFS) ${CFLAGS} ${CTHREADS} \$(PIC)
BLASLIB=$($(tc-getPKG_CONFIG) --libs blas)
MATHLIB=-lm
NOOPTS=-O0 \$(PIC)
Expand All @@ -61,8 +61,7 @@ src_prepare() {
TMGLIB=libtmglib.a
EOF
SONAME=lib${PN}.so.${SOVERSION}
sed -e 's|../make.inc|make.inc|' \
-e "s|../SRC|${EPREFIX}/usr/include/${PN}|" \
sed -e "s|../SRC|${EPREFIX}/usr/include/${PN}|" \
-e '/:.*$(SUPERLULIB)/s|../lib/$(SUPERLULIB)||g' \
-e 's|../lib/$(SUPERLULIB)|-lsuperlu_mt|g' \
-i EXAMPLE/Makefile || die
Expand Down

0 comments on commit 000c4c8

Please sign in to comment.