blob: a452716d7753da6d22ef06abaa9b9017ed93077e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<sect2>
<title>Installation of Ld.so</title>
<para>
Install Ld.so by running the following commands:
</para>
<blockquote><literallayout>
<userinput>cd util &&</userinput>
<userinput>make ldd ldconfig &&</userinput>
<userinput>cp ldd /bin &&</userinput>
<userinput>cp ldconfig /sbin &&</userinput>
<userinput>cd ../man &&</userinput>
<userinput>cp ldd.1 /usr/share/man/man1 &&</userinput>
<userinput>cp *.8 /usr/share/man/man8 &&</userinput>
<userinput>rm /usr/bin/ldd &&</userinput>
<userinput>hash -r</userinput>
</literallayout></blockquote>
<para>
The <quote>hash -r</quote> command is to make bash forget about the
locations of previously executed commands. If you have executed ldd
before, bash expects it to be found in /usr/bin. Since we moved it to
/bin, the cache needs to be purged so bash can find it in /bin when you
want to execute it again.
</para>
<para>
You might have noticed that we don't use the compiler optimizations for
this package. The reason is that overriding the CFLAGS variable causes
compilation problems. You would have to edit the Config.mk file and add
the proper values to the CFLAGS variable and then compile the package.
If you want to do that it's up to you. I don't think it's worth the
trouble though. The ld and ldd programs usually are only rarely used.
</para>
</sect2>
|