From 5c707b4eff166cb8d5bb0f020edac6d35a4cde09 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 Jan 2016 07:56:34 +0100 Subject: [PATCH] nfs-utils: unbreak glibc cross. --- srcpkgs/nfs-utils/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/nfs-utils/template b/srcpkgs/nfs-utils/template index 1f08f9bf659..5b62e8d1343 100644 --- a/srcpkgs/nfs-utils/template +++ b/srcpkgs/nfs-utils/template @@ -29,9 +29,11 @@ make_dirs=" " pre_build() { + if [ "$CROSS_BUILD" ]; then + sed -i '/SUBDIRS/s,tools,,' Makefile.in + fi case "$XBPS_TARGET_MACHINE" in *-musl) - sed -i '/SUBDIRS/s,tools,,' Makefile.in cd tools/rpcgen make CC=cc CFLAGS= CPPFLAGS= LDFLAGS= ${makejobs} ;;