${@get_gcc_mips_plt_setting(bb, d)}"
do_install () {
- oe_runmake 'DESTDIR=${D}' install
+ oe_runmake 'DESTDIR=${D}' install
+ install -d ${D}${target_base_libdir}
+ install -d ${D}${target_libdir}
+ for d in ${TARGET_SYS}/lib/nof ${TARGET_SYS}/lib64 ${TARGET_SYS}/lib; do
+ if [ -d ${D}${prefix}/$d/ ]; then
+ mv -f ${D}${prefix}/$d/libgcc* ${D}${target_base_libdir} || true
+ mv -f ${D}${prefix}/$d/* ${D}${target_libdir} || true
+ fi
+ done
# If this is important, we should remove the staging package here
# get rid of dummy libc.so
#if [ -z "`file ${STAGING_DIR_TARGET}${target_libdir}/libc.so | grep "ASCII C program text"`" ]; then