I believe I've now got a GCC installation which is fairly portable between Linux machines. (Although I have another issue that currently makes thorough testing rather difficult.)
As this wasn't so easy for an AROS & GCC compiling newbie like me to achieve, here are the main things I had to do:
First I needed to configure it with the following additional parameters:
../AROS-20190520-source/configure --target=linux-i386 --enable-debug --with-aros-toolchain-install=/usr/local/amiga/bin_aros --prefix=/usr/local/amiga/bin_arosBut that doesn't stop the resulting GCC from defaulting to looking for the AROS sysroot (includes, object files, etc) in a non-portable location. So I then needed to edit "config/make.cfg", and change the following two assignments to be:
AROS_DIR_DEVELOPMENT := /usr/local/amiga/i386-aros
AROS_DEVELOPMENT := $(AROS_DIR_DEVELOPMENT)Obviously the contents of the Development folder needs to be copied to "/usr/local/amiga/i386-aros". And there needs to be an empty folder for "/usr/local/amiga/bin_aros".
Then I could run "make".
The rather old version of AROS I am building fails to download GNU MPC, so after "make" starts compiling stuff, I needed to edit the "tools/crosstools/mmakefile" file it had created, and change the following assignment to be:
MPC_REPOSITORY := https://ftp.gnu.org/gnu/mpcWhen it eventually finishes, it's worth checking the resulting executable, to ensure it doesn't contain any non-portable references:
/usr/local/amiga/bin_aros/i386-aros-g++ -vBTW, to stop the above command reporting it was configured from the original user path I did this from, I created a symlink from /AROS to that folder, and then cd to /AROS before running "configure" & "make".