alternatives is used for this mostly
but i use a old school shell script to change the compiler
that ,above, looks about right
but for some of those you might want to use a "config.site" and export option to set things like pkg-config and locations of lib's and includes
|