misc/klibc: Fix for exported ARCH variable.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-12-27 11:51:31 +00:00 committed by Willy Sudiarto Raharjo
parent 137b2e4d93
commit 2bbac7eb5f

View file

@ -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