I am cross-compiling for an ARM platform. Amongst the many library files I'm linking, only a very few of them have an rpath.
I don't know where it is coming from, because I copied all libraries I needed into a single folder, and add them to the project with Netbeans (under Ubuntu with Linaro compiler). Even if I compile from command line the output is the same.
I tried patchelf, but it does not remove the rpath. The program per se works (for instance, if I create the path it is looking for when searching for libs).
Any idea how to fix it?