xref: /openbsd/usr.bin/libtool/libtool.1 (revision 771fbea0)
1.\"	$OpenBSD: libtool.1,v 1.3 2017/01/02 09:21:56 jmc Exp $
2.\"
3.\" Copyright (c) 2012 Marc Espie <espie@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: January 2 2017 $
18.Dt LIBTOOL 1
19.Os
20.Sh NAME
21.Nm libtool
22.Nd compile and link complex libraries
23.Sh DESCRIPTION
24.Nm
25is supposed to be a drop-in replacement for the eponymous GNU project.
26The following differences in behaviour with GNU Libtool are intentional:
27.Bl -bullet
28.It
29Relative
30.Fl L
31paths are put before absolute ones.
32This fixes many (but not all, unfortunately) issues when software
33links to libraries already installed instead of those just built because,
34for example,
35.Qq -L/usr/local/lib
36comes before
37.Qq -L../libfoo .
38.It
39Extra (duplicate)
40.Fl L
41and
42.Fl l
43items are stripped from the link command line.
44.It
45When both
46.Qq -lstdc++
47and
48.Qq -lestdc++
49are encountered in the link command line, only the latter is kept.
50.El
51