I wish to build the netcdf shared library against an existing shared hdf5 library, but not use rpath. Essentially, ldd libnetcdf.so should show libhdf5.so => not found (when libhdf5.so was obtained from an atypical location). It appears that LDFLAGS is rpath'd into libnetcdf.so, which is exactly what I do not want. How can I manage this? Thank you.
netcdfgroup
archives: