coreutils: unbreak musl cross.

This commit is contained in:
Juan RP 2015-07-04 08:00:22 +02:00
parent 978dc6acca
commit 2b06583542

View File

@ -18,11 +18,16 @@ if [ "$CHROOT_READY" ]; then
fi
pre_configure() {
local args
case "$XBPS_TARGET_MACHINE" in
# XXX syncfs() in src/sync.c expects a return value.
*-musl) args=" ac_cv_func_syncfs=no";;
esac
# Build natively all utils for the host, we need this to generate
# the manpages via help2man.
if [ "$CROSS_BUILD" ]; then
CC=cc LD=ld AR=ar RANLIB=ranlib CFLAGS=-Os CXXFLAGS=-Os LDFLAGS= \
./configure --prefix=${wrksrc}/coreutils-${XBPS_MACHINE}
./configure --prefix=${wrksrc}/coreutils-${XBPS_MACHINE} ${args}
make ${makejobs}
make install
make distclean