1 |
sashby |
1.1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
2 |
|
|
|
3 |
|
|
<!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4
|
4 |
|
|
patched version by: Kenshi Muto, Debian Project.
|
5 |
|
|
LaTeX2HTML 2002 (1.62),
|
6 |
|
|
original version by: Nikos Drakos, CBLU, University of Leeds
|
7 |
|
|
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
8 |
|
|
* with significant contributions from:
|
9 |
|
|
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
10 |
|
|
<HTML>
|
11 |
|
|
<HEAD>
|
12 |
|
|
<TITLE>3.4.1 Forcing Library Order</TITLE>
|
13 |
|
|
<META NAME="description" CONTENT="3.4.1 Forcing Library Order">
|
14 |
|
|
<META NAME="keywords" CONTENT="SCRAM">
|
15 |
|
|
<META NAME="resource-type" CONTENT="document">
|
16 |
|
|
<META NAME="distribution" CONTENT="global">
|
17 |
|
|
|
18 |
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
19 |
|
|
<META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4">
|
20 |
|
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
21 |
|
|
|
22 |
|
|
<LINK REL="STYLESHEET" HREF="SCRAM.css">
|
23 |
|
|
|
24 |
|
|
<LINK REL="previous" HREF="node34.html">
|
25 |
|
|
<LINK REL="up" HREF="node34.html">
|
26 |
|
|
<LINK REL="next" HREF="node38.html">
|
27 |
|
|
</HEAD>
|
28 |
|
|
|
29 |
|
|
<BODY bgcolor="beige" >
|
30 |
|
|
<!--Navigation Panel-->
|
31 |
|
|
<A NAME="tex2html859"
|
32 |
|
|
HREF="node38.html">
|
33 |
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
34 |
|
|
SRC="file:/usr/share/latex2html/icons/next.png"></A>
|
35 |
|
|
<A NAME="tex2html853"
|
36 |
|
|
HREF="node34.html">
|
37 |
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
38 |
|
|
SRC="file:/usr/share/latex2html/icons/up.png"></A>
|
39 |
|
|
<A NAME="tex2html849"
|
40 |
|
|
HREF="node36.html">
|
41 |
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
42 |
|
|
SRC="file:/usr/share/latex2html/icons/prev.png"></A>
|
43 |
|
|
<A NAME="tex2html855"
|
44 |
|
|
HREF="node2.html">
|
45 |
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
46 |
|
|
SRC="file:/usr/share/latex2html/icons/contents.png"></A>
|
47 |
|
|
<A NAME="tex2html857"
|
48 |
|
|
HREF="node85.html">
|
49 |
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
50 |
|
|
SRC="file:/usr/share/latex2html/icons/index.png"></A>
|
51 |
|
|
<BR>
|
52 |
|
|
<B> Next:</B> <A NAME="tex2html860"
|
53 |
|
|
HREF="node38.html">3.5 Building Binary Executables</A>
|
54 |
|
|
<B> Up:</B> <A NAME="tex2html854"
|
55 |
|
|
HREF="node34.html">3.4 Using External Libraries</A>
|
56 |
|
|
<B> Previous:</B> <A NAME="tex2html850"
|
57 |
|
|
HREF="node36.html">3.4.0.0.2 Example 2:</A>
|
58 |
|
|
  <B> <A NAME="tex2html856"
|
59 |
|
|
HREF="node2.html">Contents</A></B>
|
60 |
|
|
  <B> <A NAME="tex2html858"
|
61 |
|
|
HREF="node85.html">Index</A></B>
|
62 |
|
|
<BR>
|
63 |
|
|
<BR>
|
64 |
|
|
<!--End of Navigation Panel-->
|
65 |
|
|
|
66 |
|
|
<H2><A NAME="SECTION00441000000000000000"></A><A NAME="sec:forcingliborder"></A><A NAME="949"></A>
|
67 |
|
|
<BR>
|
68 |
|
|
3.4.1 Forcing Library Order
|
69 |
|
|
</H2>
|
70 |
|
|
By default, libraries listed in the variable <TT>$LD_LIBS</TT> are
|
71 |
|
|
filtered to avoid duplication arising from multiple makefile
|
72 |
|
|
<TT>lib+=LIBNAME</TT> statements included from cascaded group tags.
|
73 |
|
|
<A NAME="1864"></A>
|
74 |
|
|
<A NAME="1865"></A>
|
75 |
|
|
To force a library to be prepended to this list and be excluded from
|
76 |
|
|
filtering, use the declaration
|
77 |
|
|
|
78 |
|
|
<UL>
|
79 |
|
|
<TT>USEFIRSTLIBS=true</TT>
|
80 |
|
|
</LI>
|
81 |
|
|
</UL>in the project <TT>BuildFile</TT>. To add the desired library to the
|
82 |
|
|
beginning of the library list, use
|
83 |
|
|
|
84 |
|
|
<P>
|
85 |
|
|
|
86 |
|
|
<UL>
|
87 |
|
|
<TT>FIRSTLIBS+=</TT><I>name</I>
|
88 |
|
|
</LI>
|
89 |
|
|
</UL>where <I>name</I> is the name of the library. The statement can
|
90 |
|
|
be placed in any <TT>BuildFile</TT>.
|
91 |
|
|
<BR><HR>
|
92 |
|
|
<ADDRESS>
|
93 |
|
|
scram-developers@cern.ch
|
94 |
|
|
</ADDRESS>
|
95 |
|
|
</BODY>
|
96 |
|
|
</HTML>
|