diff options
| author | Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> | 2023-11-28 12:34:56 +0100 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2023-12-11 13:36:51 +0200 |
| commit | 8afa806f322112bc5dc7ab24659f8192f40deace (patch) | |
| tree | c0750e2da0bfa4b46bc41a0140109632a57021ab /gnu/packages/cross-base.scm | |
| parent | d149073eaf27f7dc3ac6201b2fcf4a454c5dd549 (diff) | |
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>
Diffstat (limited to 'gnu/packages/cross-base.scm')
| -rw-r--r-- | gnu/packages/cross-base.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index e89208b8b6b..104fb4de323 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.)" | |||
| 200 | "/" #$target "/lib")) | 200 | "/" #$target "/lib")) |
| 201 | #~()) | 201 | #~()) |
| 202 | 202 | ||
| 203 | |||
| 203 | #$@(if (target-avr? target) | 204 | #$@(if (target-avr? target) |
| 204 | #~("--enable-multilib") | 205 | #~("--enable-multilib") |
| 205 | #~()) | 206 | #~()) |
| 206 | 207 | ||
| 207 | 208 | ||
| 208 | #$@(if (and libc (target-avr? target)) | 209 | #$@(if (and libc (target-avr? target)) |
| 209 | #~((string-append "--with-native-system-header-dir=" | 210 | #~(;; By default GCC will attemp to compile |
| 211 | ;; some libraries for other languages (objc, | ||
| 212 | ;; fortran) but compilation fails for AVR. | ||
| 213 | "--enable-languages=c,c++" | ||
| 214 | (string-append "--with-native-system-header-dir=" | ||
| 210 | #$libc "/" #$target "/include")) | 215 | #$libc "/" #$target "/include")) |
| 211 | #~())) | 216 | #~())) |
| 212 | 217 | ||
