summaryrefslogtreecommitdiff
path: root/gnu/packages/cross-base.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/cross-base.scm')
-rw-r--r--gnu/packages/cross-base.scm7
1 files changed, 6 insertions, 1 deletions
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"))
#~()))