I dread the thought of messing this working install up.
So is there a recommendation/standard way to deploy different GCC versions? Those of you who are doing so, what approach are you taking? I'm talking about not just getting the binaries out there, but are you not building GCC version specific environment setup CMDs?, etc???
I have a completely working rpm environment. I also have many (most) of Paul's builds available.
I have several compilers installed so I have a compilers directory.
Under \compilers I have a gcc3.3.5 under which all the others reside:
03-13-22 18:04 <DIR> 0 bin
03-13-22 18:04 <DIR> 0 binutils
03-13-22 18:08 <DIR> 0 doc
03-13-22 18:05 <DIR> 0 i386-pc-os2-elf
03-13-22 18:06 <DIR> 0 i386-pc-os2-emx
03-13-22 18:06 <DIR> 0 include
08-12-17 23:36 <DIR> 124 info
03-13-22 18:07 <DIR> 0 lib
08-12-18 0:37 <DIR> 124 local510
08-12-18 0:51 <DIR> 0 local550
09-02-18 11:03 <DIR> 124 local620
08-12-18 0:40 <DIR> 124 local630
04-13-18 21:21 <DIR> 124 local710
04-13-18 21:18 <DIR> 124 local720
02-24-18 19:54 <DIR> 124 local730
08-09-18 0:59 <DIR> 0 local810
03-24-19 14:56 <DIR> 150 local820
05-05-19 9:56 <DIR> 150 local830
05-05-19 9:39 <DIR> 150 local910
03-13-22 17:47 <DIR> 0 local940
08-16-22 20:44 <DIR> 0 local1030
08-16-22 20:44 <DIR> 0 local1040
08-16-22 20:45 <DIR> 0 local1120
08-16-22 20:45 <DIR> 0 local1130
08-16-22 20:45 <DIR> 0 local1210
08-12-17 23:37 <DIR> 124 man
09-02-18 11:47 <DIR> 0 older
03-13-22 18:07 <DIR> 0 share
(older has 16 versions of 4.x.x)
I have a cmd script in each to set the environment:
SET GCCVER=10.4.0
SET GVER=1040
SET GCCDIR=e:\compilers\gcc440\local%GVER%
SET GCCDIR2=e:/compilers/gcc440/local%GVER%
SET GCCMAIN=e:
set GCCBASE=e:/usr
set USRBASE=e:/usr
SET PATH=%GCCDIR%\bin;%GCCDIR%\libexec\gcc\i386-pc-os2-emx\%GCCVER%;%PATH%
SET BEGINLIBPATH=%GCCDIR%\lib;%BEGINLIBPATH%
SET C_INCLUDE_PATH=%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%GCCVER%/include;%GCCDIR2%/include;%USRBASE%/local/include;%GCCBASE%/include;
SET CPLUS_INCLUDE_PATH=%GCCDIR2%/include/c++/%GCCVER%;%GCCDIR2%/include/c++/%GCCVER%/i386-pc-os2-emx;%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%GCCVER%/include;%USRBASE%/local/include;%GCCBASE%/include;
SET CPLUS_INCLUDE_PATH=%CPLUS_INCLUDE_PATH%;%GCCDIR2%/include;%GCCDIR2%/include/c++/backward;%GCCDIR2%/include/c++/%GCCVER%;%GCCDIR2%/include/c++/%GCCVER%/tr1;%GCCBASE%/include;
SET LIBRARY_PATH=%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%GCCVER%;%GCCDIR2%/lib;%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%GCCVER%;%USRBASE%/local/lib;%GCCBASE%/lib;
SET LIB=%LIBRARY_PATH%
This makes changing the version simple for each drop, right at the top.
It places the particular GCC headers and libraries first, then falls to the local lib and headers and finally to the rpm installed ones.