[oe] [PATCH 3/3] gdb-cross-sdk: use static libncurses libtinfo libz and libexpat
Tom Rini
tom_rini at mentor.com
Wed Sep 22 23:00:43 UTC 2010
Eric Bénard wrote:
> * statically linking these libs prevents several runtime problems
Since ncurses 5.7 is default and otherwise switching down / staying down
is hard atm, I'm OK with the -lncurses -> libncurses + libtinfo change.
Acked-by: Tom Rini <tom_rini at mentor.com>
>
> Signed-off-by: Eric Bénard <eric at eukrea.com>
> ---
> recipes/gdb/gdb-cross-sdk.inc | 13 ++++++++++++-
> 1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
> index 7c85653..fbff553 100644
> --- a/recipes/gdb/gdb-cross-sdk.inc
> +++ b/recipes/gdb/gdb-cross-sdk.inc
> @@ -1,8 +1,19 @@
> require gdb-cross.inc
> LICENSE = "GPLv3"
>
> -INC_PR = "r6"
> +INC_PR = "r7"
>
> inherit sdk
>
> DEPENDS = "ncurses-sdk zlib-sdk flex-native"
> +EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
> +
> +do_configure_append () {
> + cd ${B}
> + 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
> + sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile
> + sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile
> + sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/arm/Makefile
> +}
> \ No newline at end of file
--
Tom Rini
Mentor Graphics Corporation
More information about the Openembedded-devel
mailing list