mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/sbcl: v8 fixes
This commit is contained in:
parent
00092b5877
commit
2a89bfd8be
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue