coreutils: unbreak musl cross.
This commit is contained in:
@@ -18,11 +18,16 @@ if [ "$CHROOT_READY" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
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
|
# Build natively all utils for the host, we need this to generate
|
||||||
# the manpages via help2man.
|
# the manpages via help2man.
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
CC=cc LD=ld AR=ar RANLIB=ranlib CFLAGS=-Os CXXFLAGS=-Os LDFLAGS= \
|
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 ${makejobs}
|
||||||
make install
|
make install
|
||||||
make distclean
|
make distclean
|
||||||
|
|||||||
Reference in New Issue
Block a user