RUNPATH set on installed shared library
(copy from staging/dune-uggrid#63 (closed))
linitian reports an error in Debian:
E: libdune-uggrid-dev: custom-library-search-path RUNPATH /usr/lib/x86_64-linux-gnu/openmpi/lib [usr/lib/x86_64-linux-gnu/libduneuggrid.so.2.10]
which means that our buildsystem suddenly decided to put search paths in to shared libs, which it shoudn't. Not sure where that comes from
I can resolve this locally in debian with setting SKIP_BUILD_RPATH to ON but it would be nice to know where this comes from.
set_target_properties( library-name PROPERTIES ... SKIP_BUILD_RPATH TRUE )
The problem is everywhere also in dune-grid. Using the suggestion above some tests start failing in the build directory because libs are not found. Well, also tried SKIP_INSTALL_RPATH
, but the path is still there...