Skip to content
Snippets Groups Projects
Commit eb0e7b53 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

User doc for --disable-libsearch

parent fa0417f6
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,17 @@ In this example, the linker will directly try to link `/opt/local/lib/libmymathe ...@@ -152,6 +152,17 @@ In this example, the linker will directly try to link `/opt/local/lib/libmymathe
This rule is true for all the libraries, so that you will always be able to link This rule is true for all the libraries, so that you will always be able to link
a specific version of a library by specifying it using the LIBS variable. a specific version of a library by specifying it using the LIBS variable.
Since version 2.3.2, the search for the library functions passing to the linker a flag with the standard library name (in the matheval example,
it would be `-lmatheval`) can be skipped by using the option `--disable-libsearch`.
Notice that in this manner only libraries that are explicitly passed using the `LIBS` option will be linked. For instance
\verbatim
> ./configure --disable-libsearch LIBS=-lmatheval
\endverbatim
will make sure that only matheval is linked and, for instance, blas and lapack libraries are not.
This might be useful when installing PLUMED within package managers such as MacPorts to
make sure that only desired libraries are linked and thus to avoid to introduce spurious
dependencies. The only exception to this rule is `-ldl`, which is anyway a system library on Linux.
\warning On Linux you might have problems using the LDFLAGS option. In particular, \warning On Linux you might have problems using the LDFLAGS option. In particular,
if makefile complaints that it cannot link the file 'src/lib/plumed-shared', if makefile complaints that it cannot link the file 'src/lib/plumed-shared',
try to set correctly try to set correctly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment