- Libiberty
GNU libiberty is a library with a collection of
subroutine s used by variousGNU programs.It was originally intended to be a sort of standard
cross-platform library, thus enabling it to be linked (using the usualUnix library form) by just saying "-liberty". The contents consisted of a variety of useful functions. However, the development of standards for C andPOSIX took away some of the impetus for this, and libiberty came to be used primarily as a support library for theGNU toolchain .Copies of libiberty are distributed with gcc, gdb, and the
binutils .One important piece of libiberty functionality is a
demangler forC++ , included so that it is available to both binutils and GDB.The name is a
pun orwordplay on the word "liberty ". OnUnix-like operating system s, library files are always named "lib" + "the name of the library." But when they are linked to with gcc, one uses the-l
on thecommand line followed by the part of the library name after "lib". In libiberty's case it therefore becomes-liberty
.See also
*
Gnulib External links
* http://gcc.gnu.org/onlinedocs/libiberty/
Wikimedia Foundation. 2010.