msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2020-06-17 12:44+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 2.2.5\n" #. type: Content of:
#: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:14 #, no-wrap msgid "&libffi-url;" msgstr "&libffi-url;" #. type: Content of: #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:12 msgid "" "libffi &libffi-version; " msgstr "" "libffi &libffi-version; " #. type: Content of: #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:17 msgid "Libffi-&libffi-version;" msgstr "Libffi-&libffi-version;" #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:20 #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:111 msgid "libffi" msgstr "libffi" #. type: Content of: <sect1><sect2><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:26 msgid "" "The Libffi library provides a portable, high level programming interface to " "various calling conventions. This allows a programmer to call any function " "specified by a call interface description at run time." msgstr "" "Libffi 库提供一个可移植的高级编程接口,用于处理不同调用惯例。这允许程序在运行" "时调用任何给定了调用接口的函数。" #. type: Content of: <sect1><sect2><segmentedlist><segtitle> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:31 msgid "&buildtime;" msgstr "&buildtime;" #. type: Content of: <sect1><sect2><segmentedlist><segtitle> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:32 msgid "&diskspace;" msgstr "&diskspace;" #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:35 msgid "&libffi-fin-sbu;" msgstr "&libffi-fin-sbu;" #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:36 msgid "&libffi-fin-du;" msgstr "&libffi-fin-du;" #. type: Content of: <sect1><sect2><title> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:43 msgid "Installation of Libffi" msgstr "安装 Libffi" #. type: Content of: <sect1><sect2><note><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:46 msgid "" "Similar to GMP, libffi builds with optimizations specific to the proccesor " "in use. If building for another system, export CFLAGS and CXXFLAGS to " "specify a generic build for your architecture. If this is not done, all " "applications that link to libffi will trigger Illegal Operation Errors." msgstr "" "和 GMP 类似,libffi 在构建时会使用特定于当前处理器的优化。如果是在为另一台计" "算机构建系统,请导出 CFLAGS 和 CXXFLAGS 环境变量,为您的架构指定较为通用的构" "建目标。否则,所有链接到 libffi 的程序都可能触发非法指令异常。" #. type: Content of: <sect1><sect2><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:53 msgid "Prepare libffi for compilation:" msgstr "准备编译 libffi:" #. type: Content of: <sect1><sect2><screen> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:55 #, no-wrap msgid "<userinput remap=\"configure\">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput>" msgstr "<userinput remap=\"configure\">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput>" #. type: Content of: <sect1><sect2><variablelist><title> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:58 msgid "The meaning of the configure option:" msgstr "配置选项的含义:" #. type: Content of: <sect1><sect2><variablelist><varlistentry><term> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:61 msgid "<parameter>--with-gcc-arch=native</parameter>" msgstr "<parameter>--with-gcc-arch=native</parameter>" #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:63 msgid "" "Ensure GCC optimizes for the current system. If this is not specified, the " "system is guessed and the code generated may not be correct for some " "systems. If the generated code will be copied from the native system to a " "less capable system, use the less capable system as a parameter. For details " "about alternative system types, see <ulink url='https://gcc.gnu.org/" "onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'> the x86 options in the " "GCC manual</ulink>." msgstr "" "保证 gcc 为当前系统进行优化。如果不使用该选项,构建系统会猜测系统架构,在" "某些系统上可能生成不正确的代码。如果要将生成的代码从本地系统复制到指令集功" "能较弱的系统中,需要使用目标系统架构作为该选项的参数值。关于不同系统架构的信" "息,参阅 <ulink url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/" "x86-Options.html'>gcc 手册中提供的的 x86 选项</ulink>。" #. type: Content of: <sect1><sect2><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:76 msgid "Compile the package:" msgstr "编译该软件包:" #. type: Content of: <sect1><sect2><screen> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:78 #, no-wrap msgid "<userinput remap=\"make\">make</userinput>" msgstr "<userinput remap=\"make\">make</userinput>" #. type: Content of: <sect1><sect2><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:80 msgid "To test the results, issue:" msgstr "运行以下命令以测试编译结果:" #. type: Content of: <sect1><sect2><screen> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:82 #, no-wrap msgid "<userinput remap=\"test\">make check</userinput>" msgstr "<userinput remap=\"test\">make check</userinput>" #. type: Content of: <sect1><sect2><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:84 msgid "Install the package:" msgstr "安装该软件包:" #. type: Content of: <sect1><sect2><screen> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:86 #, no-wrap msgid "<userinput remap=\"install\">make install</userinput>" msgstr "<userinput remap=\"install\">make install</userinput>" #. type: Content of: <sect1><sect2><title> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:91 msgid "Contents of Libffi" msgstr "Libffi 的内容" #. type: Content of: <sect1><sect2><segmentedlist><segtitle> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:94 msgid "Installed library" msgstr "安装的库" #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:97 msgid "libffi.so" msgstr "libffi.so" #. type: Content of: <sect1><sect2><variablelist><bridgehead> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:102 msgid "Short Descriptions" msgstr "简要描述" #. type: Content of: <sect1><sect2><variablelist> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:103 msgid "" "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>" msgstr "" "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>" #. type: Content of: <sect1><sect2><variablelist><varlistentry><term> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:107 msgid "<filename class=\"libraryfile\">libffi</filename>" msgstr "<filename class=\"libraryfile\">libffi</filename>" #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para> #: /home/xry111/svn-repos/LFS-BOOK/chapter08/libffi.xml:109 msgid "contains the libffi API functions." msgstr "包含 libffi API 函数"