extra/sbcl: v8 fixes

This commit is contained in:
Kevin Mihelich 2018-06-18 18:22:04 +00:00
parent 00092b5877
commit 2a89bfd8be

View file

@ -5,9 +5,10 @@
# Contributor: Leslie Polzer (skypher)
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable sb-thread, not supported on ARM
# - disable sb-thread on 32-bit ARM: not supported
# - enable sb-thread and largefile on AArch64
buildarch=4
buildarch=12
pkgname=sbcl
pkgver=1.4.8
@ -33,17 +34,22 @@ build() {
export LINKFLAGS="$LDFLAGS"
unset LDFLAGS
unset MAKEFLAGS
if [[ ${CARCH} = x86_64 ]]; then
if [[ ${CARCH} = x86_64 || ${CARCH} = aarch64 ]]; then
enable_disable_largefile=enable
else
enable_disable_largefile=disable
fi
if [[ ${CARCH} = aarch64 ]]; then
enable_disable_thread=enable
else
enable_disable_thread=disable
fi
# Make a multi-threaded SBCL, disable LARGEFILE
cat >customize-target-features.lisp <<EOF
(lambda (features)
(flet ((enable (x) (pushnew x features))
(disable (x) (setf features (remove x features))))
(disable :sb-thread)
(${enable_disable_thread} :sb-thread)
(enable :sb-core-compression)
(${enable_disable_largefile} :largefile)))
EOF