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() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# 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}
|
||||
install -Dm755 src/file ${wrksrc}/hostbin/file
|
||||
make distclean
|
||||
install -m755 src/file ${wrksrc}/host-build/
|
||||
fi
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export PATH=${wrksrc}/hostbin:$PATH
|
||||
export PATH=${wrksrc}/host-build:$PATH
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue