chroot-file: use a temporary build-dir to build host file.
This commit is contained in:
parent
a1f297d607
commit
b2997064e2
1 changed files with 5 additions and 4 deletions
|
@ -23,16 +23,17 @@ done
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Build host file first.
|
# Build host file first.
|
||||||
CC= CFLAGS= LDFLAGS= AR= RANLIB= ./configure
|
[ ! -d host-build ] && mkdir host-build
|
||||||
|
cd host-build
|
||||||
|
CC= CFLAGS= LDFLAGS= AR= RANLIB= ../configure
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
install -Dm755 src/file ${wrksrc}/hostbin/file
|
install -m755 src/file ${wrksrc}/host-build/
|
||||||
make distclean
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
export PATH=${wrksrc}/hostbin:$PATH
|
export PATH=${wrksrc}/host-build:$PATH
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue