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 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/bash/bash.inc') 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 -- cgit v1.2.3