[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: tcc: Fix building on armhf-linux.
From: |
guix-commits |
Subject: |
01/01: gnu: tcc: Fix building on armhf-linux. |
Date: |
Thu, 31 Jan 2019 11:39:39 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 9117d6df87f2c31c91a78b2969434880c3afad2c
Author: Efraim Flashner <address@hidden>
Date: Thu Jan 31 18:39:06 2019 +0200
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.
---
gnu/packages/c.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 692e9e7..3b20e84 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))