[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
order of libraries in Makefiles
From: |
John W. Eaton |
Subject: |
order of libraries in Makefiles |
Date: |
Mon, 1 Aug 2011 14:29:25 -0400 |
On 1-Aug-2011, Sergei Steshenko wrote:
| Hello,
|
| (maybe I've already asked this question)
|
| I see in Makefiles this:
|
| "
| octave-3.4.2/test/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/libcruft/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/libgnu/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/scripts/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/examples/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/refcard/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/icons/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/interpreter/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/faq/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/liboctave/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/doc/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/liboctave/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/src/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| octave-3.4.2/Makefile:BLAS_LIBS = -lcblas -lf77blas -latlas
| :,
|
| i.e. 'atlas' is last.
|
| Shouldn't it be first ? I mean, first the linker is supposed to find
| the accelerated implementation in 'atlas', and if unsuccessful, to look
| for the implementation blas/lapack.
How did you run configure?
What does config.log tell you about how it determined the value of
BLAS_LIBS?
jwe