$linuxjunkies
>

libtoolize(1)

Prepare a package to use libtool by adding necessary build files and macros.

UbuntuDebianFedoraArch

Synopsis

libtoolize [OPTION]... [DIRECTORY]...

Description

libtoolize is a tool that automatically adds libtool support to a package. It copies libtool's helper scripts and M4 macro definitions into your source tree, allowing you to use libtool's features for building shared libraries portably across different Unix-like systems.

Run libtoolize in the top-level directory of your package before running autoconf or automake. It detects your package's configuration and installs the appropriate files needed for libtool integration.

Common options

FlagWhat it does
--installCopy libtool files to the package; required for initial setup
--forceOverwrite existing libtool files even if already present
--copyCopy files instead of symlinking them
--dry-runShow what would be done without making changes
--quietSuppress informational messages
--verbosePrint verbose progress information
--versionDisplay the libtool version and exit
--helpShow help message and exit

Examples

Install libtool files into current package, copying instead of symlinking, overwriting any existing files

libtoolize --install --copy --force

Basic setup: add libtool support to the current package directory

libtoolize --install

Initialize libtool in myproject with detailed output showing what files are being installed

cd myproject && libtoolize --install --verbose

Preview what libtoolize would install without actually making changes

libtoolize --dry-run --install

Reinitialize libtool support in a specific package directory with forced file replacement

libtoolize --force --copy /path/to/package

Check which version of libtool is installed

libtoolize --version

Related commands