Sun Jun 6 11:31:17 2021 UTC ()
(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


(mef)
diff -r1.12 -r1.13 pkgsrc/math/R-classInt/Makefile

cvs diff -r1.12 -r1.13 pkgsrc/math/R-classInt/Makefile (expand / switch to unified diff)

--- pkgsrc/math/R-classInt/Makefile 2021/01/03 12:52:04 1.12
+++ pkgsrc/math/R-classInt/Makefile 2021/06/06 11:31:17 1.13
@@ -1,18 +1,19 @@ @@ -1,18 +1,19 @@
1# $NetBSD: Makefile,v 1.12 2021/01/03 12:52:04 mef Exp $ 1# $NetBSD: Makefile,v 1.13 2021/06/06 11:31:17 mef Exp $
2 2
3R_PKGNAME= classInt 3R_PKGNAME= classInt
4R_PKGVER= 0.4-3 4R_PKGVER= 0.4-3
5 5
6MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
7COMMENT= Choose univariate class intervals 7COMMENT= Choose univariate class intervals
8LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 8LICENSE= gnu-gpl-v2 OR gnu-gpl-v3
9 9
10DEPENDS+= R-e1071>=1.7.2:../../math/R-e1071 10DEPENDS+= R-e1071>=1.7.2:../../math/R-e1071
11 11
12TEST_DEPENDS+= R-spData-[0-9]*:../../geography/R-spData 12TEST_DEPENDS+= R-spData-[0-9]*:../../geography/R-spData
13TEST_DEPENDS+= R-units-[0-9]*:../../math/R-units 13TEST_DEPENDS+= R-units-[0-9]*:../../math/R-units
14 14
15USE_LANGUAGES= c fortran 15USE_LANGUAGES= c fortran
16 16
17.include "../../math/R/Makefile.extension" 17.include "../../math/R/Makefile.extension"
 18.include "../../mk/compiler/gfortran.mk"
18.include "../../mk/bsd.pkg.mk" 19.include "../../mk/bsd.pkg.mk"