summaryrefslogtreecommitdiff
path: root/math/lapack/scripts/configure
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-09-22 11:40:06 +0000
committerThomas Gellekum <tg@FreeBSD.org>2000-09-22 11:40:06 +0000
commit564e16e4956f9aa85dc2b7ba9196e3f389fe135d (patch)
tree448b07da3060310ea53d0b8833548558547991f3 /math/lapack/scripts/configure
parentAs clever as makeport.pl is, I made this port. (change Whom:) (diff)
Add LDADD=g2c (f2c for -stale) to the makefiles.
Reviewed by: Paul Magwene <paul.magwene@yale.edu> Approved by: jmz
Diffstat (limited to 'math/lapack/scripts/configure')
-rw-r--r--math/lapack/scripts/configure20
1 files changed, 17 insertions, 3 deletions
diff --git a/math/lapack/scripts/configure b/math/lapack/scripts/configure
index af2b847ae1e1..c11a54624c46 100644
--- a/math/lapack/scripts/configure
+++ b/math/lapack/scripts/configure
@@ -1,12 +1,22 @@
+if [ ${OSVERSION} -lt 400012 ]; then
+ LIBG2C=f2c
+else
+ LIBG2C=g2c
+fi
+
cd $WRKSRC/BLAS/SRC || exit 1
mv Makefile Makefile.old
-cat >Makefile <<'END'
+cat >Makefile <<END
LIB= blas
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
+LDADD= -l${LIBG2C}
+
+END
+cat >>Makefile <<'END'
SBLAS1= isamax.f sasum.f saxpy.f scopy.f sdot.f snrm2.f \
srot.f srotg.f sscal.f sswap.f
CBLAS1 = scasum.f scnrm2.f icamax.f caxpy.f ccopy.f \
@@ -49,11 +59,15 @@ END
cd $WRKSRC/SRC || exit 1
mv Makefile Makefile.old
-cat >Makefile <<'END'
+cat >Makefile <<END
LIB= lapack
SHLIB_MAJOR= 3
SHLIB_MINOR= 0
-
+
+LDADD= -l${LIBG2C}
+
+END
+cat >>Makefile <<'END'
ALLAUX = ilaenv.f ieeeck.f lsame.f lsamen.f xerbla.f etime_.c
SCLAUX = \