Fixing libtool on Solaris / OpenSolaris
If you're building a lot of software on Solaris/OpenSolaris by hand.. You may have missed one small thing that could later come back and bite you.. If you're reading this you may already have seen libtool end up killing your build with something like blah bla ELFCLASS32
ld: fatal: file /usr/sfw/lib/libstdc++.so: wrong ELF class: ELFCLASS32
You'll notice it only happens with -m64.. So what to do? Well the easiest fix and I guess standard policy for Debian and not OSUNIX is to remove all *.la files. When libtool finds a la file it gets so excited that it wants to include the full path to the lib. In this case the .la file it found was for 32bit, but -m64 is pretty clear. By deleting all *.la files we let the linker be smarter than libtool and avoid these stupid errors entirely.
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e551818418883301156fabb4b6970c
Listed below are links to weblogs that reference Fixing libtool on Solaris / OpenSolaris:
The comments to this entry are closed.
Comments