1SHTOOL-SLO.TMP(1)           GNU Portable Shell Tool          SHTOOL-SLO.TMP(1)
2
3
4

NAME

6       shtool slo - GNU shtool separate linker options by library class
7

SYNOPSIS

9       shtool slo [-p|--prefix str] -- -Ldir -llib [-Ldir -llib ...]
10

DESCRIPTION

12       This command separates the linker options ``-L'' and ``-l'' by library
13       class. It's argument line can actually be an arbitrary command line
14       where those options are contained. slo parses these two options only
15       and ignores the remaining contents. The result is a trivial shell
16       script on "stdout" which defines six variables containing the ``-L''
17       and ``-l'' options sorted by class:
18
19       ``"SLO_DIRS_OBJ"'' and ``"SLO_LIBS_OBJ"'' contains the ``-L'' and
20       ``-l'' options of static libraries,  ``"SLO_DIRS_PIC"'' and
21       ``"SLO_LIBS_PIC"'' contains the ``-L'' and ``-l'' options of static
22       libraries containing PIC ("Position Independent Code") and
23       ``"SLO_DIRS_DSO"'' and ``"SLO_LIBS_DSO"'' contains the ``-L'' and
24       ``-l'' options of shared libraries. The -p option can be used to change
25       the default variable prefix from ""SLO_"" to str.
26
27       The intent of this separation is to provide a way between static and
28       shared libraries which is important if one wants to link custom DSOs
29       against libraries, because not all platforms all one to link these DSOs
30       against shared libraries. So one first has to separate out the shared
31       libraries and link the DSO only against the static libraries.  One can
32       use this command also to just sort the options.
33

OPTIONS

35       The following command line options are available.
36
37       -p, --prefix str
38               FIXME
39
40       -Ldir
41           Directory where libraries are searched in.
42
43       -llib
44           Library to search for.
45

EXAMPLE

47        #   configure.in
48        LINK_STD="$LDFLAGS $LIBS"
49        eval `shtool slo $LINK_STD`
50        LINK_DSO="$SLO_DIRS_OBJ $SLO_LIBS_OBJ $SLO_DIRS_PIC $SLO_LIBS_PIC"
51          :
52

HISTORY

54       The GNU shtool slo command was originally written by Ralf S.
55       Engelschall <rse@engelschall.com> in 1998 for Apache.  It was later
56       taken over into GNU shtool.
57

SEE ALSO

59       shtool(1), ld(1).
60
61
62
6318-Jul-2008                      shtool 2.0.8                SHTOOL-SLO.TMP(1)
Impressum