[Buildroot] BR2_ROOTFS_MERGED_USR and gdb

Peter Korsgaard peter at korsgaard.com
Thu Nov 26 21:23:03 UTC 2015


>>>>> "Pieterjan" == Pieterjan Camerlynck <pieterjan.camerlynck at gmail.com> writes:

 > Hi,
 > Since the introduction of BR2_ROOTFS_MERGED_USR, /lib is now a symlink
 > to /usr/lib on the target. In the sysroot directory however, /lib and
 > /usr/lib are separate directories.

 > When remote debugging, this causes gdb to search only for libraries in
 > /lib under the sysroot directory.
 > Is there a way to fix this situation other than using "set solib-search-path"?

Thanks for the report. I guess we'll need to do the same merged-usr
handling (and workarounds) we do for the target directory also for
staging.

Yann is looking into it, but it is nontrivial so it will most likely not
make it for 2015.11.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list