> This works but cross-gcc only delivers GCC and the libc.
> The "lib" output of the regular GCC is missing.
>
> In particular, I'd need libstdc++.so.
Then, that should be fine:
--8<---------------cut here---------------start------------->8---
(native-inputs
`(,@(if (not (string-prefix? "i686" (%current-system)))
`(("cross-gcc" ,(cross-gcc "i686-unknown-linux-gnu"
#:libc (cross-libc
"i686-unknown-linux-gnu")))
("cross-binutils" ,(cross-binutils "i686-unknown-linux-gnu")))
'())))
--8<---------------cut here---------------end--------------->8---
By default the #:libc field of cross-gcc is #f which seems to be the
issue for you.
Mathieu