> so my question is how can I solve this error. > I thought about adding rpath to these libraries in order to move then > under a private location /usr/lib/<package>. But for this I need to add > an rpath to all the extensions which use these libraries.
You should consider /usr/lib/<arch>/<package> if you want to make your package multiarch-safe. See: https://wiki.debian.org/Multiarch/Implementation#What_does_the_end_result_look_like.3F