Question on compiling and linking with YAC
Hi, I wrote two toy models that are being used to check the coupling with a hydrology model. These toy models are part of the repository of the other model. The toys are compiled as follows:
mpicc -o toy_land.exe -O0 -g ../code/src/toy_land.c `pkg-config --libs yac` `pkg-config --cflags yac`
The toys themselves use NetCDF. Since, YAC also uses netcdf, pkg delivers the respective arguments for compiling and linking with NetCDF. However, the arguments from pkg do not contain the rpath to the libraries. In order the run the toys I have explictily to set the LD_LIBRARY_PATH
...
I could also explicitly set the rpath when compiling the toys, but then this path would have to match the library from the pkg agruments.
What is method to handle this issue? Would it be possible for YAC to already provide the rpath?