2 % This is part of LFSbookja package.
4 % This is a CTIE change file for the original XML source of the LFSbook.
7 <?xml version="1.0" encoding="ISO-8859-1"?>
9 <?xml version="1.0" encoding="UTF-8"?>
13 <title>Binutils-&binutils-version; - Pass 2</title>
15 <title>Binutils-&binutils-version; - 2回め</title>
19 <indexterm zone="ch-tools-binutils-pass2">
20 <primary sortas="a-Binutils">Binutils</primary>
21 <secondary>tools, pass 2</secondary>
24 <indexterm zone="ch-tools-binutils-pass2">
25 <primary sortas="a-Binutils">Binutils</primary>
26 <secondary>&Tools;, 2回め</secondary>
31 <title>Installation of Binutils</title>
33 <title>&InstallationOf1;Binutils&InstallationOf2;</title>
37 <para>Create a separate build directory again:</para>
40 ビルドのためのディレクトリを再び生成します。
45 <para>Prepare Binutils for compilation:</para>
47 <para>&PreparePackage1;Binutils&PreparePackage2;</para>
51 <title>The meaning of the new configure options:</title>
53 <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
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>
62 % Binutils をネイティブにビルドすることが目的なので、ホストシステムに存在しているクロスコンパイラーや関連ツールは使わず、ビルドしているシステム内のものを用いるように指定します。
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>
74 % configure スクリプトに対して Binutils のコンパイル中でのライブラリパスを指定します。
75 % リンカーに対して <filename class="directory">/tools/lib</filename> ディレクトリを指定するものです。
76 % こうすることでリンカーがホスト上のライブラリを検索しないようにします。
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><sysroot>/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>
93 % これはデフォルトの(存在していない)sysroot ディレクトリ <filename
94 % class="directory">/tools/$LFS_TGT/sys-root</filename> を定義するものです。
95 % これは、リンカーのコマンドライン上に指定された共有オブジェクトに対し、そこから必要とされる共有オブジェクトを見つけ出せるようになります。
96 % 共有オブジェクトは <filename><sysroot>/etc/ld.so.conf</filename> に設定されたディレクトリ内から検索され、
97 % 検索に失敗した場合はリンカーの検索パスが検索されます。
99 % このスイッチが仮に設定されていなかったら、ホスト上の <filename>/etc/ld.so.conf</filename> が用いられます。
100 % つまりホスト上のライブラリにリンクされるプログラムが出てくることとなり、避けなければならないことです。
105 <para>Builds <filename
106 class="libraryfile">libbfd</filename> as a shared library.</para>
109 <filename class="libraryfile">libbfd</filename> を共有ライブラリとしてビルドします。
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>
118 64 ビットサポートを有効にします(ホスト上にて、より小さなワードサイズとします)。
119 64 ビットシステムにおいては不要ですが、不具合を引き起こすものではありません。
124 <para>Compile the package:</para>
126 <para>&CompileThePackage;</para>
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>
137 またホストディストリビューションの zlib に対して <filename
138 class="libraryfile">libctf.so</filename> がリンクしてしまう問題を回避します。
143 <para>Details on this package are located in
144 <xref linkend="contents-binutils" role="."/></para>
147 &Details1;<xref linkend="contents-binutils" role=""/>&Details2;