aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-01-15 16:37:52 +0100
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:44:24 +0200
commita84b5f92308f72c5f930fdd112164b067275d41f (patch)
tree2d31e97ed19fd93785bc6357dd696a1d7207c24f
parentc24db4693fe26617cc6ce61bf7343c262f44efcf (diff)
downloadguix-a84b5f92308f72c5f930fdd112164b067275d41f.tar.gz
guix-a84b5f92308f72c5f930fdd112164b067275d41f.zip
gnu: cross-base: Build cross-compilers with ‘--enable-languages=c,c++’.
This fixes a regression introduced in d21d596f72ad491937123980e65d3efedc903bd6 where the cross-compiler would fail to build with: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [Makefile:13129: configure-target-libobjc] Error 1 * gnu/packages/cross-base.scm (cross-gcc-arguments): Clear ‘--enable-languages’ flag unconditionally. Change-Id: I2bb38bac42e0791cad617893343c0d3dfc963450
-rw-r--r--gnu/packages/cross-base.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 21a840c1f5..f6226cc2b3 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -231,8 +231,7 @@ base compiler and using LIBC (which may be either a libc package or #f.)"
(remove
(lambda (flag)
- (or (and #$libc
- (string-prefix? "--enable-languages" flag))
+ (or (string-prefix? "--enable-languages" flag)
(and #$libc
#$(target-avr? target)
(string-prefix? "--with-native-system-header-dir"