Changeset 943f225
- Timestamp:
- 01/21/2024 04:27:45 PM (3 months ago)
- Branches:
- 12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
- Children:
- 0253841d
- Parents:
- d282f88
- git-author:
- Xi Ruoyao <xry111@…> (01/19/2024 04:57:51 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (01/21/2024 04:27:45 PM)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/ncurses.xml
rd282f88 r943f225 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.so159 ln -sv libncursesw.so $LFS/usr/lib/libncurses.so 160 160 sed -e 's/^#if.*XOPEN.*$/#if 1/' \ 161 161 -i $LFS/usr/include/curses.h</userinput></screen> … … 179 179 180 180 <varlistentry> 181 <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> 182 182 <listitem> 183 183 <para>The <filename>libncurses.so</filename> library is needed by 184 a few packages we will build soon. We create this small linker 185 script, as this is what is done in <xref 186 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> 187 186 </listitem> 188 187 </varlistentry> -
chapter08/ncurses.xml
rd282f88 r943f225 145 145 146 146 <para>Many applications still expect the linker to be able to find 147 non-wide-character Ncurses libraries. Trick such applications into linking with 148 wide-character libraries by means of symlinks and linker scripts:</para> 147 non-wide-character Ncurses libraries. Trick such applications into 148 linking with wide-character libraries by means of symlinks 149 (note that the <filename class='extension'>.so</filename> links are 150 only safe with <filename>curses.h</filename> edited to always use the 151 wide-character ABI):</para> 149 152 150 153 <screen><userinput remap="install">for lib in ncurses form panel menu ; do 151 rm -vf /usr/lib/lib${lib}.so 152 echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so 153 ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc 154 ln -sfv lib${lib}w.so /usr/lib/lib${lib}.so 155 ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc 154 156 done</userinput></screen> 155 157 … … 158 160 buildable:</para> 159 161 160 <screen><userinput remap="install">rm -vf /usr/lib/libcursesw.so 161 echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so 162 ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen> 162 <screen><userinput remap="install">ln -sfv libncursesw.so /usr/lib/libcurses.so</userinput></screen> 163 163 164 164 <para>If desired, install the Ncurses documentation:</para> … … 212 212 </seg> 213 213 <seg> 214 libcursesw.so (symlink and linker script to libncursesw.so), 214 libcurses.so (symlink), 215 libform.so (symlink), 215 216 libformw.so, 217 libmenu.so (symlink), 216 218 libmenuw.so, 219 libncurses.so (symlink), 217 220 libncursesw.so, 218 221 libncurses++w.so, 219 libpanelw.so, and their non-wide-character counterparts without "w" 220 in the library names.</seg> 222 libpanel.so (symlink), 223 and libpanelw.so, 224 </seg> 221 225 <seg> 222 226 /usr/share/tabset,
Note:
See TracChangeset
for help on using the changeset viewer.