10.21. Libtool-1.5.22 32 Bit Libraries

The Libtool package contains the GNU generic library support script. It wraps the complexity of using shared libraries in a consistent, portable interface.

10.21.1. Installation of Libtool

Prepare Libtool for compilation:

CC="gcc ${BUILD32}" ./configure --prefix=/usr

Compile the package:

make

To test the results, issue: make LDEMULATION=elf32ppc check.

The meaning of the override on make check:

LDEMULATION=elf32ppc

Libtool tends to do the wrong thing when building for multilib, at least on the non-default size(s) of architecture. These causes of these errors are not well understood and they can appear, or disappear, as a result of apparently innocuous other changes in the build. In this version of the book, one of the tests (pdemo-make) fails to link because it tries to link the 32-bit objects against 64-bit system libraries. This option enables the test to succeed without impacting the other tests (compare the common alternative fixes of LD="gcc ${BUILD32}" which causes far fewer tests to be executed, and configuring with LDFLAGS='-L/lib -L/usr/lib' which in this case causes other tests to fail.)

Install the package:

make install

Details on this package are located in Section 10.22.2, “Contents of Libtool.”