When I compile rustc, there is an option in the configure script to specify other goals for the main libraries ( libcore, libstdetc.), for example:
./configure
will compile and install rustlibsfor both of these architectures.
My problem is that this command will use my gcc by default to compile everything (since my system is multilib, it will also compile successfully with i686), but I want to use the toolchain compiler instead, for example:
There are 2 toolchains on my amd64 system: i686-unknown-linux-gnuand arm-unknown-linux-gnueabi.
When I run configure with these parameters:
./configure
When compiling, rustlibsI want the script to use x86_64-unknown-linux-gnu- gcc for x86_64, and i686-unknown-linux-gnu- gcc for i686and arm-unknown-linux-gnueabi- gcc for arm.
Thus, it rustlibwill be compiled using glibcother libraries from the tool chain, and not by default from my system. Is it possible?
source
share