hello,
I am attempting to build the latest release of gcc. My current version was preinstalled as:
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
And is configured as:
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Is it best to configure the new version the same way or to configure as default?
Thank you.
Hello, I usually use the
Hello,
I usually use the same flags from the original GCC from the distro except for the installation directories (--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info). For them I usually just use --prefix=/usr/local/gcc- so that it will be isolated in one directory when it is installed (and can be easily deleted later).
Also, since I usually only build the C and C++ compiler, it is no point to use --enable-java-awt=gtk in my case. You may want to read the GCC installation manual to enable only the language you'll use.
Just don't remove your original GCC after installing the new one because you might need that original GCC someday (just IMO).
And you can also use wrapper like colorgcc (perl script, available by searching from google) and edit the commands which invoke the real GCC binaries within it. I always use this method to switch manually between the several GCC versions installed in my box.
regards,
Aloysius