Commit | Line | Data |
---|---|---|
5e0cbfb0 PP |
1 | --- |
2 | id: building-32-bit-lttng-ust | |
3 | --- | |
4 | ||
5 | Follow this: | |
6 | ||
7 | <pre class="term"> | |
8 | git clone http://git.lttng.org/lttng-ust.git | |
9 | cd lttng-ust | |
10 | ./bootstrap | |
11 | ./configure --prefix=/usr \ | |
12 | --libdir=/usr/lib32 \ | |
13 | CFLAGS=-m32 CXXFLAGS=-m32 \ | |
14 | LDFLAGS=-L/usr/lib32 | |
15 | make | |
16 | sudo make install | |
17 | sudo ldconfig | |
18 | </pre> | |
19 | ||
bd469a0d PP |
20 | `-L/usr/lib32` is required for the build to find the 32-bit versions |
21 | of Userspace RCU and other dependencies. | |
22 | ||
23 | <div class="tip"> | |
24 | <p> | |
25 | <span class="t">Note:</span>Depending on your Linux distribution, | |
26 | 32-bit libraries could be installed at a different location than | |
27 | <code>/usr/lib32</code>. For example, Debian is known to install | |
28 | some 32-bit libraries in <code>/usr/lib/i386-linux-gnu</code>. | |
29 | </p> | |
30 | <p> | |
31 | In this case, make sure to set <code>LDFLAGS</code> to all the | |
4d46e8c0 | 32 | relevant 32-bit library paths, for example, |
bd469a0d PP |
33 | <code>LDFLAGS="-L/usr/lib32 -L/usr/lib/i386-linux-gnu"</code>. |
34 | </p> | |
35 | </div> | |
5e0cbfb0 PP |
36 | |
37 | <div class="tip"> | |
38 | <p> | |
39 | <span class="t">Note:</span>You may add options to | |
4d46e8c0 PP |
40 | <code>./configure</code> if you need them (for |
41 | Java and SystemTap support, for example). Look at | |
5e0cbfb0 PP |
42 | <code>./configure --help</code> for more information. |
43 | </p> | |
44 | </div> |