Libtool is a harsh, harsh mistress.

So I upgraded GCC the other day. Just a minor upgrade to boot, version 3.3.2 to version 3.3.3. But then all of a sudden, my KDE CVS directory refused to build, with libtool whining about missing libraries in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2.

I’m thinking, Well, duh, the directory’s NOT THERE you stupid script, I just replaced that version with the new hotness!. So of course, I had to find each and every .la file that was complaining, and munge it through a Perl script I cooked up that does nothing but replace gcc-lib/i686-pc-linux-gnu/3.3.2 with gcc-lib/i686-pc-linux-gnu/3.3.3.

I could’ve just rebuilt KDE from scratch, but that’s about 5 GB of compiled and otherwise generated files that I really don’t feel like waiting around for.

So if you’re recently upgraded GCC and libtool starts complaining to you, perhaps my tale will point you in the direction you need to go.