Skip to content

RUNPATH set on installed shared library

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 )
Edited by Markus Blatt