~ruther/guix-local

a84b5f92308f72c5f930fdd112164b067275d41f — Ludovic Courtès 2 years ago c24db46
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
1 files changed, 1 insertions(+), 2 deletions(-)

M gnu/packages/cross-base.scm
M gnu/packages/cross-base.scm => gnu/packages/cross-base.scm +1 -2
@@ 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"