29 Sep
2021
29 Sep
'21
15:05
Hello! I'm currently trying to cross-compile the Rust compiler on openSUSE but I'm running into the problem that the build system wants to invoke the cross-gcc compiler with the naming scheme $ARCH-linux-gnu-gcc where ARCH is the target architecture. However, on openSUSE, the cross-compiler prefix is $ARCH-suse-linux- which is why the build system can't find the cross-compiler although it has been installed. Does anyone know how to tell Rust's build system to use the proper cross-compile prefix, similar to the CROSS_COMPILE environment variable that the Linux kernel uses? Configuring the Rust compiler with "--host=$ARCH-suse-linux" doesn't work either. Thanks, Adrian