mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
coreutils: unbreak musl cross.
This commit is contained in:
parent
978dc6acca
commit
2b06583542
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue