Changeset 37e35d2 for chapter08/libffi.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter08/libffi.xml
rd4fdde6 r37e35d2 33 33 34 34 <seglistitem> 35 <seg>&libffi- ch6-sbu;</seg>36 <seg>&libffi- ch6-du;</seg>35 <seg>&libffi-fin-sbu;</seg> 36 <seg>&libffi-fin-du;</seg> 37 37 </seglistitem> 38 38 </segmentedlist> … … 50 50 Illegal Operation Errors.</para> 51 51 </note> 52 <!--53 <para>Modify the Makefile to install headers into the standard54 <filename class="directory">/usr/include</filename> directory instead of55 <filename class="directory">/usr/lib/libffi-&libffi-version;/include</filename>.</para>56 52 57 <screen><userinput remap="pre">sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \58 -i include/Makefile.in59 60 sed -e '/^includedir/ s/=.*$/=@includedir@/' \61 -e 's/^Cflags: -I${includedir}/Cflags:/' \62 -i libffi.pc.in</userinput></screen>63 -->64 53 <para>Prepare libffi for compilation:</para> 65 54 … … 72 61 <term><parameter>--with-gcc-arch=native</parameter></term> 73 62 <listitem> 74 <para>Ensure gccoptimizes for the current system. If this63 <para>Ensure GCC optimizes for the current system. If this 75 64 is not specified, the system is guessed and the code generated 76 65 may not be correct for some systems. If the generated code … … 79 68 about alternative system types, see <ulink 80 69 url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'> 81 the x86 options in the gccmanual</ulink>.</para>70 the x86 options in the GCC manual</ulink>.</para> 82 71 </listitem> 83 72 </varlistentry> … … 93 82 <screen><userinput remap="test">make check</userinput></screen> 94 83 95 <para>Six tests, all related to test-callback.c, are known to fail.</para>96 97 84 <para>Install the package:</para> 98 85 … … 101 88 </sect2> 102 89 103 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ --> 90 <!-- - - - - - - - - - --> 91 <!-- Multilib - 32bit --> 92 <!-- - - - - - - - - - --> 104 93 105 94 <sect2 arch="ml_32,ml_all" role="installation"> 106 <title>Installation of Libffi - 32 -bit</title>95 <title>Installation of Libffi - 32bit</title> 107 96 108 97 <para>Clean previous build:</para> … … 112 101 <para>Prepare Libffi for compilation:</para> 113 102 114 <screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \ 115 ./configure \ 103 <screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" ./configure \ 116 104 --prefix=/usr \ 117 105 --disable-static \ 118 --libdir= /usr/lib32\106 --libdir=&usr-lib-m32; \ 119 107 --with-gcc-arch=i686 \ 120 108 --host=i686-pc-linux-gnu</userinput></screen> … … 131 119 132 120 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 133 cp -Rv DESTDIR /usr/lib32/* /usr/lib32121 cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32; 134 122 rm -rf DESTDIR</userinput></screen> 135 123 136 </sect2> 124 </sect2><!-- m32 --> 137 125 138 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ --> 126 <!-- - - - - - - - - - --> 127 <!-- Multilib - x32bit --> 128 <!-- - - - - - - - - - --> 139 129 140 130 <sect2 arch="ml_x32,ml_all" role="installation"> 141 <title>Installation of Lib ffi - x32-bit</title>131 <title>Installation of Libtool - x32bit</title> 142 132 143 133 <para>Clean previous build:</para> … … 147 137 <para>Prepare Libffi for compilation:</para> 148 138 149 <screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \ 150 ./configure \ 151 --prefix=/usr \ 152 --disable-static \ 153 --with-gcc-arch=x86_64 \ 154 --libdir=/usr/libx32 \ 139 <screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" ./configure \ 140 --prefix=/usr \ 141 --disable-static \ 142 --libdir=&usr-lib-mx32; \ 143 --with-gcc-arch=x86_64 \ 155 144 --host=x86_64-unknown-linux-gnux32</userinput></screen> 156 145 … … 166 155 167 156 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 168 cp -Rv DESTDIR /usr/libx32/* /usr/libx32157 cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32; 169 158 rm -rf DESTDIR</userinput></screen> 170 159 171 </sect2> 160 </sect2><!-- mx32 --> 172 161 173 162 <sect2 id="contents-libffi" role="content">
Note:
See TracChangeset
for help on using the changeset viewer.