so we have : configure then make configure-host which generates the
Makefile that we modify using sed to statically link the libs
Without this patch, we don't statically link libncurses, libtinfo
and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
when trying to use the toolchain.
Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
# add a depenency on the -sdk versions of them.
do_configure_append () {
cd ${B}
+ oe_runconf
oe_runmake configure-host
sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile
sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
for SIM in ${B}/sim/*/Makefile; do
[ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM
done
- oe_runconf
}