gnu: tcc: Fix building on armhf-linux.

* gnu/packages/c.scm (tcc)[arguments]: Add 'configure-flag to set the
triplet when building for armhf-linux.
This commit is contained in:
Efraim Flashner 2019-01-31 18:39:06 +02:00
parent 0270b24b65
commit 9117d6df87
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 6 additions and 1 deletions

View File

@ -69,7 +69,12 @@
"/include:{B}/include") "/include:{B}/include")
(string-append "--libpaths=" (string-append "--libpaths="
(assoc-ref %build-inputs "libc") (assoc-ref %build-inputs "libc")
"/lib")) "/lib")
,@(if (string-prefix? "armhf-linux"
(or (%current-target-system)
(%current-system)))
`("--triplet=arm-linux-gnueabihf")
'()))
#:test-target "test")) #:test-target "test"))
;; Fails to build on MIPS: "Unsupported CPU" ;; Fails to build on MIPS: "Unsupported CPU"
(supported-systems (delete "mips64el-linux" %supported-systems)) (supported-systems (delete "mips64el-linux" %supported-systems))