talira

GNU Libtool

GNU's generic library support script for building shared and static libraries portably

open sourceGPL-2.0-or-laterfree

GNU Libtool is a generic library support script that hides the complexity of building special library types, such as shared libraries, behind one consistent interface. A project adds Libtool's library-building commands to its Makefile, Makefile.in or Makefile.am, and Libtool builds static libraries on every platform and C, C++, Fortran and Java libraries. It's part of the GNU build system with GNU Automake and Autoconf.

Ways to install

Problems it solves

  • build a shared library from my C project that works the same way on Linux, macOS and BSD
  • stop hand-writing platform-specific linker flags for shared libraries in my autotools project
  • link a library with its dependencies portably from a Makefile.am without knowing each platform's rules

Features

  • one interface for building shared and static libraries across platforms
  • static libraries on every platform
  • C, C++, Fortran and Java libraries
  • used from Makefile, Makefile.in or Makefile.am

Alternatives

The same job

These do what GNU Libtool does.

  1. CMake A powerful software build system
  2. elixir_make A Make compiler for Mix
  3. GNU Autoconf Builds the configure scripts that adapt source packages to each Unix system
  4. Meson Fast, user-friendly open source build system with a readable, non-Turing-complete language
  5. GNU Automake Generates GNU Standards-compliant Makefile.in files from Makefile.am

Compare GNU Libtool with the top 3