I am running Ubuntu 12.04 and was hit by this gcc bug. In order to fix this I installed a more recent version of gcc (following this procedure). Now
gcc -v and
g++ -v both work, but packages that use libtool still use gcc-4.6.3.
How can I reconfigure libtool to pick up the updated gcc ?