summaryrefslogtreecommitdiff
path: root/gnu/packages/c.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-01-31 18:39:06 +0200
committerEfraim Flashner <efraim@flashner.co.il>2019-01-31 18:39:19 +0200
commit9117d6df87f2c31c91a78b2969434880c3afad2c (patch)
tree9524f26114629484f19fcdaaf09161a95e07276f /gnu/packages/c.scm
parent0270b24b65a06547d43e77eebed0e19ad8ab6e15 (diff)
downloadpatches-9117d6df87f2c31c91a78b2969434880c3afad2c.tar
patches-9117d6df87f2c31c91a78b2969434880c3afad2c.tar.gz
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.
Diffstat (limited to 'gnu/packages/c.scm')
-rw-r--r--gnu/packages/c.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 692e9e714d..3b20e84a91 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -69,7 +69,12 @@
"/include:{B}/include")
(string-append "--libpaths="
(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"))
;; Fails to build on MIPS: "Unsupported CPU"
(supported-systems (delete "mips64el-linux" %supported-systems))