extra/sbcl: fix

This commit is contained in:
Kevin Mihelich 2020-01-10 13:53:35 +00:00
parent 329d052335
commit 5fe622cda2

View file

@ -6,6 +6,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable sb-thread on 32-bit ARM: not supported
# - enable sb-thread and largefile on AArch64
# - remove hard-coded -march=armv5 CFLAGS
buildarch=12
highmem=1
@ -25,6 +26,11 @@ source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$p
sha256sums=('90369256805d437c82ab9bdab9a410076f57810a50bb2b228de4e6c892692fcf'
'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's/-march=armv5//' src/runtime/Config.arm-linux
}
build() {
cd "$srcdir/$pkgname-$pkgver"
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"