chroot-file: use a temporary build-dir to build host file.
This commit is contained in:
parent
a1f297d607
commit
b2997064e2
|
@ -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 New Issue