gnu: sbcl: Fix building on armhf-linux.

* gnu/packages/lisp.scm (sbcl)[arguments]: When building for armhf-linux
add a phase to remove build optimizations targeting armv5.
This commit is contained in:
Efraim Flashner 2022-07-12 13:46:26 +03:00
parent 79a7c6e811
commit 0d6d7b3efc
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -466,6 +466,13 @@ an interpreter, a compiler, a debugger, and much more.")
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
,@(if (target-arm32?)
;; TODO: Move to snippet in staging.
`((add-after 'unpack 'dont-force-armv5
(lambda _
(substitute* "src/runtime/Config.arm-linux"
(("-march=armv5") "")))))
'())
(delete 'configure)
(add-after 'unpack 'fix-build-id
;; One of the build scripts makes a build id using the current date.