guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/23: gnu: cross-gcc: Only C and C++ for AVR.


From: guix-commits
Subject: 13/23: gnu: cross-gcc: Only C and C++ for AVR.
Date: Mon, 11 Dec 2023 06:57:41 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 8afa806f322112bc5dc7ab24659f8192f40deace
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Tue Nov 28 12:34:56 2023 +0100

    gnu: cross-gcc: Only C and C++ for AVR.
    
    * gnu/packages/cross-base.scm (cross-gcc-arguments)
    <configure-flags> [target-avr?]: Add --enable-languages=c,c++.
    
    Change-Id: I1d63bb1b0a3074b9ff8650c5afb93777183c0ea4
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/cross-base.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index e89208b8b6..104fb4de32 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -200,13 +200,18 @@ base compiler and using LIBC (which may be either a libc 
package or #f.)"
                                                   "/" #$target "/lib"))
                                 #~())
 
+
                          #$@(if (target-avr? target)
                                 #~("--enable-multilib")
                                 #~())
 
 
                          #$@(if (and libc (target-avr? target))
-                                #~((string-append 
"--with-native-system-header-dir="
+                                #~(;; By default GCC will attemp to compile
+                                   ;; some libraries for other languages (objc,
+                                   ;; fortran) but compilation fails for AVR.
+                                   "--enable-languages=c,c++"
+                                   (string-append 
"--with-native-system-header-dir="
                                                   #$libc "/" #$target 
"/include"))
                                 #~()))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]