From 2bbac7eb5fa10d62ad0eebcf2749a1b3b456d89e Mon Sep 17 00:00:00 2001 From: David Spencer Date: Wed, 27 Dec 2017 11:51:31 +0000 Subject: misc/klibc: Fix for exported ARCH variable. Signed-off-by: David Spencer --- misc/klibc/klibc.SlackBuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/klibc/klibc.SlackBuild b/misc/klibc/klibc.SlackBuild index 73280c99a977..d04bbcc88a07 100644 --- a/misc/klibc/klibc.SlackBuild +++ b/misc/klibc/klibc.SlackBuild @@ -80,8 +80,8 @@ fi # Thanks to the gentoo team for the patch. patch -p1 < $CWD/klibc-2.0.3-kernel-uapi.patch -KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS=$SLKCFLAGS make -KLIBCKERNELSRC=/lib/modules/$KERNEL/source make install INSTALLROOT=$PKG +env -u ARCH KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS="$SLKCFLAGS" make +env -u ARCH KLIBCKERNELSRC=/lib/modules/$KERNEL/source make install INSTALLROOT=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3