Jump to content

GNU Libtool

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Newslinger (talk | contribs) at 22:33, 23 December 2018 (Use Free and open-source software portal name (via WP:JWB)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

GNU Libtool
Developer(s)GNU Project[1]
Initial releaseJuly 9, 1997; 27 years ago (1997-07-09)
Stable release2.5.3 (September 25, 2024; 39 days ago (2024-09-25)[2]) [±]
Repository
Operating systemCross-platform
TypeLibrary
LicenseGPLv2
Websitegnu.org/s/libtool

GNU Libtool is a computer programming tool from the GNU build system used for creating portable compiled libraries.

Rationale

Different operating systems handle shared libraries in different ways, and some platforms do not use shared libraries at all. It can be difficult to make a software program portable: the C compiler differs from system to system; certain library functions are missing on some systems; header files may have different names. One way to handle this is to write conditional code, with code blocks selected by means of preprocessor directives (#ifdef); but because of the wide variety of build environments this approach quickly becomes unmanageable. The GNU build system is designed to address this problem more manageably.

Libtool helps manage the creation of static and dynamic libraries on various Unix-like operating systems. Libtool accomplishes this by abstracting the library-creation process, hiding differences between various systems (e.g. Linux systems vs. Solaris).

GNU Libtool is designed to simplify the process of compiling a computer program on a new system, by "encapsulating both the platform-specific dependencies, and the user interface, in a single script".[3] When porting a program to a new system, Libtool is designed so the porter need not read low-level documentation for the shared libraries to be built, rather just run a configure script (or equivalent).[3]

Use

Libtool is typically used with Autoconf and Automake, two other tools of the GNU build system. However, it is designed so as not to be dependent upon either.[4]

Clones and derivatives

Since GNU Libtool was released, other open source projects have created drop-in replacements under different software licenses.[5]

See also

References

  1. ^ "GNU". Retrieved 25 June 2012.
  2. ^ Ileana Dumitrescu (25 Sep 2024). "libtool-2.5.3 released [stable]". GNU Libtool - News. savannah.gnu.org.
  3. ^ a b Libtool Manual
  4. ^ Other-implementations
  5. ^ BSD-licensed libtool.