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:
parent
0270b24b65
commit
9117d6df87
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue