-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
After installing BML, bml.pc in install/lib64/pkgconfig looks like:
prefix=/home/q8j/GIT/jeanlucf22/bml/install
includedir=/home/q8j/GIT/jeanlucf22/bml/install/include
libdir=/home/q8j/GIT/jeanlucf22/bml/install/lib64
Name: bml
Description: The basic matrix library
URL: https://lanl.github.io/bml/
Version: 2.2.0
Cflags: -I/home/q8j/GIT/jeanlucf22/bml/install/include
Libs: -L/home/q8j/GIT/jeanlucf22/bml/install/lib64 -lbml_fortran -lbml /software/dev_tools/swtree/cs400_centos7.2_pe2016-08/scalapack/2.0.2/centos7.5_gnu8.1.0/lib/libscalapack.a /usr/lib64/liblapack.so /software/dev_tools/swtree/cs400_centos7.2_pe2016-08/openBLAS/0.2.20/centos7.5_gnu8.1.0/lib/libopenblas.a -lgfortran -lm /software/dev_tools/swtree/cs400_centos7.2_pe2016-08/openBLAS/0.2.20/centos7.5_gnu8.1.0/lib/libopenblas.a -lgfortran -lm -lm
Now when I try to build qmd-progress using that installation of BML, cmake sets BML_LDFLAGS to:
/software/dev_tools/swtree/cs400_centos7.2_pe2016-08/scalapack/2.0.2/centos7.5_gnu8.1.0/lib/libscalapack.a;/usr/lib64/liblapack.so;/software/dev_tools/swtree/cs400_centos7.2_pe2016-08/openBLAS/0.2.20/centos7.5_gnu8.1.0/lib/libopenblas.a;-L/home/q8j/GIT/jeanlucf22/bml/install/lib64;-lbml_fortran;-lbml;-lgfortran;-lm
That is it re-ordered the library with the .a first and the '-l' last. The problem is that now I am getting some undefined functions at link time since bml comes after scalapack.
Any idea how to fix that, either on the qmd-progress side or when generating the .pc on the BML side?