10.63. Libtool-2.4.6 N32 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.63.1. Installation of Libtool

The following config.cache entry overrides the default search path, which does not take multilib into account:

echo "lt_cv_sys_dlsearch_path='/lib32 /usr/lib32 /usr/local/lib32 /opt/lib32'" > config.cache

Prepare Libtool for compilation:

CC="gcc ${BUILDN32}" ./configure \
    --prefix=/usr \
    --libdir=/usr/lib32 \
    --cache-file=config.cache

Compile the package:

make

To test the results, identify the correct emulation, then issue: make LDEMULATION=[emulation] check. The correct emulation will be elf32btsmipn32 for a big-endian machine and elf32ltsmipn32 for a little-endian machine.

Install the package:

make install

Prepare libtool to be wrapped by the multiarch wrapper. Libtool by itself is not multilib aware:

mv -v /usr/bin/libtool{,-n32}

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