From 57cde526bf3db0e8572d09cae4ad80049e559d81 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Mon, 9 Jun 2008 19:32:22 +0000 Subject: bash 3.2 change the way how mkbuiltin is compiled for host --- packages/bash/bash.inc | 8 +++++++- packages/bash/bash_3.2.bb | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/bash/bash.inc b/packages/bash/bash.inc index b67e8bbe39..dd2a180bb1 100644 --- a/packages/bash/bash.inc +++ b/packages/bash/bash.inc @@ -12,13 +12,19 @@ bindir = "/bin" sbindir = "/sbin" EXTRA_OECONF = "--with-ncurses" -export CC_FOR_BUILD = "${BUILD_CC}" +export RM="echo" do_configure () { gnu-configize oe_runconf } +do_compile_prepend() { + cd builtins + ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} -I${S}/include -I${S} -o mkbuiltins mkbuiltins.c + cd ${S} +} + pkg_postinst () { touch $D${sysconfdir}/shells grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells diff --git a/packages/bash/bash_3.2.bb b/packages/bash/bash_3.2.bb index 883df50194..dc3485514c 100644 --- a/packages/bash/bash_3.2.bb +++ b/packages/bash/bash_3.2.bb @@ -1,5 +1,6 @@ require bash.inc -PR = "r4" + +PR = "r5" SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \ http://ftp.gnu.org/gnu/bash/bash-3.2-patches/bash32-001;patch=1;pnum=0 \ -- cgit v1.2.3