Draft: main/gcc: don't assume RISC-V libs to be available in lib32/lib64 dirs
The default RISC-V GCC Linux configuration assumes libraries to be available in /usr/lib64 or /lib64 and /usr/lib32, /lib32. Unfortunately, Alpine does not use these directories. This MR copies a check from existing GCC Linux configurations for other architectures to check if these directories actually exist before using them.
This fixes fixes the gcc -print-multi-os-directory output
on riscv64 and
fixes tools which rely on this output, e.g. gcc-go.
Edited by Sören Tempel