rm -rf "${KLIBC_DIR}" klibc-build
[ ! -f "${KLIBC_SRCTAR}" ] &&
gen_die "Could not find klibc tarball: ${KLIBC_SRCTAR}"
- /bin/tar -xpf "${KLIBC_SRCTAR}" ||
+ /bin/tar zxpf "${KLIBC_SRCTAR}" ||
gen_die 'Could not extract klibc tarball'
[ ! -d "${KLIBC_DIR}" ] &&
gen_die "klibc tarball ${KLIBC_SRCTAR} is invalid"
cd "${KLIBC_DIR}"
+
+ # Don't install to "//lib" fix
+ sed -e 's:$(INSTALLROOT)/$(SHLIBDIR):$(INSTALLROOT)$(INSTALLDIR)/$(CROSS)lib:' -i klibc/Makefile
if [ -f ${GK_SHARE}/pkg/byteswap.h ]
then
echo "Inserting byteswap.h into klibc"
# Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.3.9'
+GK_V='3.3.10'
TMPDIR='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.