- Timestamp:
- 01/24/2024 12:26:42 PM (8 months ago)
- Branches:
- xry111/arm64
- Children:
- 648f145
- Parents:
- 9f894d5 (diff), 5bef8f2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/ncurses.xml
r9f894d5 rd8c2d84 157 157 158 158 <screen><userinput remap="install">make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install 159 echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so</userinput></screen> 159 ln -sv libncursesw.so $LFS/usr/lib/libncurses.so 160 sed -e 's/^#if.*XOPEN.*$/#if 1/' \ 161 -i $LFS/usr/include/curses.h</userinput></screen> 160 162 <!-- 161 163 <para>Remove an unneeded static library not handled by … … 177 179 178 180 <varlistentry> 179 <term><command> echo "INPUT(-lncursesw)" >$LFS/usr/lib/libncurses.so</command></term>181 <term><command>ln -sv libncursesw.so $LFS/usr/lib/libncurses.so</command></term> 180 182 <listitem> 181 183 <para>The <filename>libncurses.so</filename> library is needed by 182 a few packages we will build soon. We create this small linker 183 script, as this is what is done in <xref 184 linkend="chapter-building-system"/>.</para> 184 a few packages we will build soon. We create this symlink to use 185 <filename>libncursesw.so</filename> as a replacement.</para> 186 </listitem> 187 </varlistentry> 188 189 <varlistentry> 190 <term><command>sed -e 's/^#if.*XOPEN.*$/#if 1/' ...</command></term> 191 <listitem> 192 <para>The header file <filename>curses.h</filename> contains 193 the definition of various Ncurses data structures. With different 194 preprocessor macro definitions two different sets of the data 195 structure definition may be used: the 8-bit definition is 196 compatible with <filename>libncurses.so</filename> and the 197 wide-character definition is compatible with 198 <filename>libncursesw.so</filename>. Since we are using 199 <filename>libncursesw.so</filename> as a replacement of 200 <filename>libncurses.so</filename>, edit the header file so it 201 will always use the wide-character data structure definition 202 compatible with <filename>libncursesw.so</filename>.</para> 185 203 </listitem> 186 204 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.