summaryrefslogtreecommitdiff
path: root/misc/klibc/klibc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/klibc/klibc.SlackBuild')
-rw-r--r--misc/klibc/klibc.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/klibc/klibc.SlackBuild b/misc/klibc/klibc.SlackBuild
index 73280c99a9..d04bbcc88a 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