Adam Piątyszek wrote:
Another problem found in {blas,cblas,lapack}-reference ebuilds. The *.pc files provided includes wrong Libs.private settings:% cat /usr/lib/blas/reference/blas.pc [...] Libs: -lblas Libs.private: -lm @FLIBS@ ^^^^^^^ This should be expanded by configure. % cat /usr/lib/blas/reference/cblas.pc [...] Requires: blas URL: http://www.netlib.org/blas/ Libs: -lcblas Libs.private: -lm -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. -lgfortranbegin -lgfortran -lm % cat /usr/lib/lapack/reference/lapack.pc [...] Requires: blas URL: http://www.netlib.org/lapack/ Libs: -llapack Libs.private: -lm In the above two "Libs.private:" should be empty, since these package require blas, which provides proper libs for static linking (both -lm and FLIBS).
I might be wrong on this, but if you are linking pure fortran libs with blas you don't even need libg2c or libgfortran.
It should then be: blas.pc.in: Libs.private: -lm cblas.pc.in: Libs.private: @FLIBS@ lapack.pc.in: Libs.private: empty -- [EMAIL PROTECTED] mailing list
