[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Configuring Octave
From: |
Labitt, Bruce |
Subject: |
RE: Configuring Octave |
Date: |
Tue, 22 Jul 2008 12:46:18 -0400 |
Thank you John, for your help.
You should put -L flags in LDFLAGS, like this:
configure LDFLAGS=-L/lib64
| > ./configure --with-f77=gfortran --with-blas=/usr/lib64/libblas.so
| > --with-lapack=/usr/lib64/liblapack.so --enable-shared --enable-64
| > LIBS="-l/lib64/libpcre.so"
It is probably also better to use
configure ... F77=gfortran
and add -L/usr/lib64 to LDFLAGS, then omit the --with-blas and
--with-lapack options.
The --enable-shared option is the default, so you don't need to
specify it.
You do realize that --enable-64 is experimental, right? [Labitt, Bruce]
Yes. If you are using this option, you must ensure that all Fortran bits
(lapack,
blas, etc.) have been compiled to use 8-byte integers, so you will
likely need to use the -fdefault-integer-8 option for gfortran.
[Labitt, Bruce] Hmm, I don't think I did this. What would the configure
option be on ATLAS for instance?
./configure .. F77=gfortran .... FFLAGS="-fdefault-integer-8" ?
Thanks!
So, all together, the configure command would look something like
this (split across lines for easier reading):
configure --enable-64 LDFLAGS="-L/lib64 -L/usr/lib64"
F77=gfortran FFLAGS="-fdefault-integer-8 -O2"
jwe