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
This commit is contained in:
Ludovic Courtès 2024-01-15 16:37:52 +01:00
parent c24db4693f
commit a84b5f9230
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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"