unning below command it would see right result: bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc -print-libgcc-file-name. $bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc -print-libgcc-file-name /net/pek-lpd-susbld/pek-lpd-susbld12/wrlinux-6.0-rcpl/wrlinux-6/layers/binary-toolchain-4.8-45/bin/../lib/gcc/i686-wrs-linux-gnu/4.8.1/libgcc.a but, it will lost dirname of libgcc's path if you run it under pseudo: bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/pseudo bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-wrs-linux/x86_64-wrs-linux-gcc -print-libgcc-file-name pseudo: Warning: PSEUDO_PREFIX unset, defaulting to /initramfas-1/bitbake_build/tmp/sysroots/x86_64-linux/usr. libgcc.a this is case heavily relating with host environment