by Keyframe · 7y ago · 0 comments
Usually it's just this sequence:
wget gcc... whichever
untar it and go into the directory
within that directory ./contrib/download_prerequisites
outside of that directory create a build directory, go in there and do a config. I usually do (for example in 9.1 case, but it has been the same forever now):
../gcc-9.1.0/configure --prefix=<my_home_dir>/tools/gcc-9-1-0 --enable-languages=c,c++,ada --disable-multilib --enable-checking=release --with-pkgversion='GCC Keyframe'
For Ada you have to have an Ada enabled compiler already, so omit ada
and after that it's simple make and then make install
I also have functions in my .zshrc with which I set envs so I can easily switch between gcc versions (and linkers) and that's it.
No comments yet.