bash 3.2 change the way how mkbuiltin is compiled for host
authorMichael Lauer <mickey@vanille-media.de>
Mon, 9 Jun 2008 19:32:22 +0000 (19:32 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Mon, 9 Jun 2008 19:32:22 +0000 (19:32 +0000)
packages/bash/bash.inc
packages/bash/bash_3.2.bb

index b67e8bb..dd2a180 100644 (file)
@@ -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
index 883df50..dc34855 100644 (file)
@@ -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 \