I have to upgrade my current gcc from 3.3.5 to 5.1 on my NAS.My plan is to upgrade from gcc 3.3.5 -> gcc 4.0 -> gcc 4.6 -> gcc 5.1I did the following:I used the gcc configure parameters of gcc 3.3.5 for the gcc 4.0 configure with some adjustments.The configure parameters I used for gcc 4.0 /opt/gcc-4/bin/gcc -v        Using built-in specs.        Target: sparc-linux        Configured with: ../gcc-4.0.4/configure --enable-languages=c,c++ --        prefix=/opt/gcc-4 --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared         --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-        gettext --enable-clocale=gnu --enable-debug --with-cpu=v7 --enable-objc-gc         sparc-linux        Thread model: posix        gcc version 4.0.4My next step would be to upgrade from gcc 4.0.4 to gcc 4.6.I did export LD_LIBRARY_PATH=/opt/gcc-4/libMy questions:For gcc 4.6 I need to upgrade some gnu dependencies like gettext, binutils, m4, autconfShould I override the old libraries (for example gettext) using the same prefix? Or should I install them into /usr/local?When I'm using gcc the system is still using the old gcc. Whats the best approach here using the new gcc version? Should I use the absolute path? How can I tell configure to use the new gcc environment?When I compile the next gcc version, how can I tell gcc to use the new gettext, binutils libaries?Thanks.
Best approach to upgrade gnu utils
compiling;gcc;gnu