https://sourceware.org/bugzilla/show_bug.cgi?id=29288
--- Comment #2 from William Tang <galaxyking0419 at gmail dot com> --- Okay, it seems there is another issue. Although the ld is configured with --with-sysroot option. The -rpath values are still not used for shared library dependency resolution. This is against the behavior stated in the documentation (https://sourceware.org/binutils/docs-2.38/ld/Options.html#Options): "The -rpath option is also used when locating shared objects which are needed by shared objects explicitly included in the link; see the description of the -rpath-link option. Searching -rpath in this way is only supported by native linkers and cross linkers which have been configured with the --with-sysroot option." -- You are receiving this mail because: You are on the CC list for the bug.