The model is compiled by first compiling a library and then linking this with the main program and all the tests. The main program (at least) should be linked statically, not dynamically, as seems to be the case now.
The reason for this is that some HPC setups require you to copy the executable from a login node to the compute node. In such a setup, it is annoying to have to make sure that the shared object file is copied as well and that the LD_LIBRARY_PATH (or similar) is correctly set on the compute node.
The model is compiled by first compiling a library and then linking this with the main program and all the tests. The main program (at least) should be linked statically, not dynamically, as seems to be the case now.
The reason for this is that some HPC setups require you to copy the executable from a login node to the compute node. In such a setup, it is annoying to have to make sure that the shared object file is copied as well and that the LD_LIBRARY_PATH (or similar) is correctly set on the compute node.