From a84b5f92308f72c5f930fdd112164b067275d41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 15 Jan 2024 16:37:52 +0100 Subject: [PATCH] =?UTF-8?q?gnu:=20cross-base:=20Build=20cross-compilers=20?= =?UTF-8?q?with=20=E2=80=98--enable-languages=3Dc,c++=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gnu/packages/cross-base.scm | 3 +-- 1 file changed, 1 insertion(+), 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 @@ (define (cross-gcc-arguments target xgcc libc) (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"