Changeset ba098b6 for chapter05/gettext.xml
- Timestamp:
- 11/15/2005 12:53:24 AM (18 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- feaa22c
- Parents:
- ac1d807
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gettext.xml
rac1d807 rba098b6 28 28 <title>Installation of Gettext</title> 29 29 30 <para>For our temporary set of tools, we only need to build and install one binary from gettext.</para> 31 30 32 <para>Prepare Gettext for compilation:</para> 31 33 32 <screen><userinput> ./configure --prefix=/tools --disable-libasprintf \33 --without-csharp</userinput></screen>34 <screen><userinput>cd gettext-tools 35 ./configure --prefix=/tools --disable-shared</userinput></screen> 34 36 35 37 <para>The meaning of the configure options:</para> … … 37 39 <variablelist> 38 40 <varlistentry> 39 <term><parameter>--disable-libasprintf</parameter></term> 40 <listitem><para>This flag tells Gettext not to build the 41 <filename class="libraryfile">asprintf</filename> library. Because nothing in this 42 chapter or the next requires this library and Gettext gets rebuilt later, 43 exclude it to save time and space.</para></listitem> 44 </varlistentry> 45 46 <varlistentry> 47 <term><parameter>--without-csharp</parameter></term> 48 <listitem><para>This ensures that Gettext does not build support for the C# 49 compiler which may be present on the host but will not be available once we 50 enter the <command>chroot</command> environment.</para></listitem> 41 <term><parameter>--disable-shared</parameter></term> 42 <listitem><para>We are not installing any of the gettext libraries at this 43 time so we need to build <command>msgfmt</command> as a static binary.</para></listitem> 51 44 </varlistentry> 52 45 </variablelist> … … 54 47 <para>Compile the package:</para> 55 48 56 <screen><userinput>make</userinput></screen> 49 <screen><userinput>make -C lib 50 make -C src msgfmt</userinput></screen> 57 51 58 <para>To test the results, issue: <userinput>make check</userinput>. 59 This takes quite some time, around 7 SBUs. The Gettext test suite is 60 known to experience failures under certain host conditions, for 61 example when it finds a Java compiler on the host. An experimental 62 patch to disable Java is available from the LFS Patches project at 63 <ulink url="&lfs-root;patches/"/>.</para> 52 <para>Install the single static binary:</para> 64 53 65 <para>Install the package:</para> 66 67 <screen><userinput>make install</userinput></screen> 54 <screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen> 68 55 69 56 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.