ncurses-exp.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>patch -Np1 -i
  4. ../ncurses-&ncurses-version;-patch:</userinput> This patch fixes a compile
  5. problem with GCC-3.1 because Ncurses uses constructions that are no longer
  6. valid in the new C++ standard.</para>
  7. <para><userinput>--with-shared:</userinput> This enables the build of the
  8. shared ncurses library files.</para>
  9. <para><userinput>--disable-termcap:</userinput> Disabled the compilation of
  10. termcap fall back support.</para>
  11. <para><userinput>mv /lib/*.a /usr/lib :</userinput> This
  12. moves all of the static ncurses library files from /lib to /usr/lib.
  13. /lib should only contain the shared files which are essential to the
  14. system when /usr may not be mounted.</para>
  15. <para><userinput>chmod 755 *.5.2:</userinput> Shared libraries should be
  16. executable. Ncurses install routine doesn't set the permissions
  17. properly so we do it manually instead.</para>
  18. <para><userinput>ln -sf libncurses.a libcurses.a:</userinput> Some
  19. programs try to link using -lcurses instead of -lncurses. This symlink
  20. ensures that such programs will link without errors.</para>
  21. <para><userinput>ln -sf ../../lib/libncurses.so etc:</userinput> These
  22. symlinks are created to tidy up the installation. It's good practice to
  23. have the *.so files in /usr/lib as well as in /lib, to ensure that the
  24. linker is always able to find the files whether it's looking in /lib or
  25. /usr/lib.</para>
  26. </sect2>