pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/R-classInt (math/R-classInt) Add compiler.mk buil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2425eab100f4
branches:  trunk
changeset: 454097:2425eab100f4
user:      mef <mef%pkgsrc.org@localhost>
date:      Sun Jun 06 11:31:17 2021 +0000

description:
(math/R-classInt) Add compiler.mk buildlink

Without this change, I have following error with 9.99.82 host (amd64) which
has gcc-10. And buildlink for libgfortran was only made for gcc-10 side.
Adding this line makes both gcc-7 and gcc-10 buildlinked.

The error I had was: ( the line folded)
** libs
----------
gcc -shared -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib
  -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -pthrea d
  -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -o classInt.so fish1.o init.o
  -L/usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0 -L/usr/pkg/gcc7/lib
  -Wl,-R/usr/pkg/gcc7/x86_64--netbsd/lib/. -Wl,-R/usr/pkg/gcc7/lib/. -lgfortran
  -lm -lquadmath -lpthread -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib
  -lR
ld: cannot find -lgfortran
ld: cannot find -lquadmath
*** Error code 1
----------
Please correct me if my understanding (or correction) is wrong, sorry and tks

diffstat:

 math/R-classInt/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r b1fc44a20a50 -r 2425eab100f4 math/R-classInt/Makefile
--- a/math/R-classInt/Makefile  Sun Jun 06 11:28:59 2021 +0000
+++ b/math/R-classInt/Makefile  Sun Jun 06 11:31:17 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2021/01/03 12:52:04 mef Exp $
+# $NetBSD: Makefile,v 1.13 2021/06/06 11:31:17 mef Exp $
 
 R_PKGNAME=     classInt
 R_PKGVER=      0.4-3
@@ -15,4 +15,5 @@
 USE_LANGUAGES= c fortran
 
 .include "../../math/R/Makefile.extension"
+.include "../../mk/compiler/gfortran.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index