mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
f6810d47a9
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1917 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
36 lines
1.4 KiB
XML
36 lines
1.4 KiB
XML
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><userinput>patch -Np1 -i
|
|
../ncurses-&ncurses-version;-patch:</userinput> This patch fixes a compile
|
|
problem with GCC-3.1 because Ncurses uses constructions that are no longer
|
|
valid in the new C++ standard.</para>
|
|
|
|
<para><userinput>--with-shared:</userinput> This enables the build of the
|
|
shared ncurses library files.</para>
|
|
|
|
<para><userinput>--disable-termcap:</userinput> Disabled the compilation of
|
|
termcap fall back support.</para>
|
|
|
|
<para><userinput>mv /lib/*.a /usr/lib :</userinput> This
|
|
moves all of the static ncurses library files from /lib to /usr/lib.
|
|
/lib should only contain the shared files which are essential to the
|
|
system when /usr may not be mounted.</para>
|
|
|
|
<para><userinput>chmod 755 *.5.2:</userinput> Shared libraries should be
|
|
executable. Ncurses install routine doesn't set the permissions
|
|
properly so we do it manually instead.</para>
|
|
|
|
<para><userinput>ln -sf libncurses.a libcurses.a:</userinput> Some
|
|
programs try to link using -lcurses instead of -lncurses. This symlink
|
|
ensures that such programs will link without errors.</para>
|
|
|
|
<para><userinput>ln -sf ../../lib/libncurses.so etc:</userinput> These
|
|
symlinks are created to tidy up the installation. It's good practice to
|
|
have the *.so files in /usr/lib as well as in /lib, to ensure that the
|
|
linker is always able to find the files whether it's looking in /lib or
|
|
/usr/lib.</para>
|
|
|
|
</sect2>
|
|
|