gdb-cros-sdk.inc: Update our DEPENDS list
[openembedded.git] / recipes / gdb / gdb-cross-sdk.inc
blob9949e103d15c44973adae7d55b9f88defb3f783d
1 require gdb-cross.inc
2 LICENSE = "GPLv3"
4 inherit sdk
6 # Since we statically link these libraries, we don't dep on the -sdk version
7 DEPENDS = "ncurses-native zlib-native expat-native flex-native"
8 EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
10 do_configure_append () {
11         cd ${B}
12         oe_runmake configure-host
13         sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile
14         sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
15         sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile
16         sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile
17         for SIM in ${B}/sim/*/Makefile; do
18                 [ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM
19         done