OSDN Git Service

[lfsja-git] r11.0-26 対応。
[lfsbookja/lfsja-git.git] / src / chapter06 / binutils-pass2.ch
1 %
2 % This is part of LFSbookja package.
3 %
4 % This is a CTIE change file for the original XML source of the LFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13   <title>Binutils-&binutils-version; - Pass 2</title>
14 @y
15   <title>Binutils-&binutils-version; - 2回め</title>
16 @z
17
18 @x
19   <indexterm zone="ch-tools-binutils-pass2">
20     <primary sortas="a-Binutils">Binutils</primary>
21     <secondary>tools, pass 2</secondary>
22   </indexterm>
23 @y
24   <indexterm zone="ch-tools-binutils-pass2">
25     <primary sortas="a-Binutils">Binutils</primary>
26     <secondary>&Tools;, 2回め</secondary>
27   </indexterm>
28 @z
29
30 @x
31     <title>Installation of Binutils</title>
32 @y
33     <title>&InstallationOf1;Binutils&InstallationOf2;</title>
34 @z
35
36 @x
37     <para>Create a separate build directory again:</para>
38 @y
39     <para>
40     ビルドのためのディレクトリを再び生成します。
41     </para>
42 @z
43
44 @x
45     <para>Prepare Binutils for compilation:</para>
46 @y
47     <para>&PreparePackage1;Binutils&PreparePackage2;</para>
48 @z
49
50 @x
51       <title>The meaning of the new configure options:</title>
52 @y
53       <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
54 @z
55
56 %@x CC=$LFS_TGT-gcc AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib
57 %          <para>Because this is really a native build of Binutils, setting these
58 %          variables ensures that the build system uses the cross-compiler and
59 %          associated tools instead of the ones on the host system.</para>
60 %@y
61 %          <para>
62 %          Binutils をネイティブにビルドすることが目的なので、ホストシステムに存在しているクロスコンパイラーや関連ツールは使わず、ビルドしているシステム内のものを用いるように指定します。
63 %          </para>
64 %@z
65
66 %@x --with-lib-path=/tools/lib
67 %          <para>This tells the configure script to specify the library
68 %          search path during the compilation of Binutils, resulting in
69 %          <filename class="directory">/tools/lib</filename> being passed
70 %          to the linker. This prevents the linker from searching through
71 %          library directories on the host.</para>
72 %@y
73 %          <para>
74 %          configure スクリプトに対して Binutils のコンパイル中でのライブラリパスを指定します。
75 %          リンカーに対して <filename class="directory">/tools/lib</filename> ディレクトリを指定するものです。
76 %          こうすることでリンカーがホスト上のライブラリを検索しないようにします。
77 %          </para>
78 %@z
79
80 %@x --with-sysroot
81 %          <para>This defines a default (non-existent) sysroot directory
82 %          <filename class="directory">/tools/$LFS_TGT/sys-root</filename>.
83 %          It is useful when looking for shared objects which are required by
84 %          other shared objects explicitly included on the linker's command
85 %          line. Those objects are searched into the directories listed in
86 %          <filename>&lt;sysroot&gt;/etc/ld.so.conf</filename>, and failing
87 %          that, into the linker search path, which is right. If this switch
88 %          is not given, <filename>/etc/ld.so.conf</filename> on the host
89 %          is used, that is, programs may be linked to libraries on
90 %          the host, which we want to avoid.</para>
91 %@y
92 %          <para>
93 %          これはデフォルトの(存在していない)sysroot ディレクトリ <filename
94 %          class="directory">/tools/$LFS_TGT/sys-root</filename> を定義するものです。
95 %          これは、リンカーのコマンドライン上に指定された共有オブジェクトに対し、そこから必要とされる共有オブジェクトを見つけ出せるようになります。
96 %          共有オブジェクトは <filename>&lt;sysroot&gt;/etc/ld.so.conf</filename> に設定されたディレクトリ内から検索され、
97 %          検索に失敗した場合はリンカーの検索パスが検索されます。
98 %          この動きは合理的なものです。
99 %          このスイッチが仮に設定されていなかったら、ホスト上の <filename>/etc/ld.so.conf</filename> が用いられます。
100 %          つまりホスト上のライブラリにリンクされるプログラムが出てくることとなり、避けなければならないことです。
101 %          </para>
102 %@z
103
104 @x --enable-shared
105           <para>Builds <filename
106           class="libraryfile">libbfd</filename> as a shared library.</para>
107 @y
108           <para>
109           <filename class="libraryfile">libbfd</filename> を共有ライブラリとしてビルドします。
110           </para>
111 @z
112
113 @x --enable-64-bit-bfd
114           <para>Enables 64-bit support (on hosts with narrower word sizes).
115           May not be needed on 64-bit systems, but does no harm.</para>
116 @y
117           <para>
118           64 ビットサポートを有効にします(ホスト上にて、より小さなワードサイズとします)。
119           64 ビットシステムにおいては不要ですが、不具合を引き起こすものではありません。
120           </para>
121 @z
122
123 @x
124     <para>Compile the package:</para>
125 @y
126     <para>&CompileThePackage;</para>
127 @z
128
129 @x
130     <para>Install the package, and
131     workaround an issue causing
132     <filename class="libraryfile">libctf.so</filename>
133     to link against zlib from the host distribution:</para>
134 @y
135     <para>
136     &InstallThePackage;
137     またホストディストリビューションの zlib に対して <filename
138     class="libraryfile">libctf.so</filename> がリンクしてしまう問題を回避します。
139     </para>
140 @z
141
142 @x
143     <para>Details on this package are located in
144     <xref linkend="contents-binutils" role="."/></para>
145 @y
146     <para>
147     &Details1;<xref linkend="contents-binutils" role=""/>&Details2;
148     </para>
149 @z