glfs/general/sysutils/gpm/gpm-inst.xml
Larry Lawrence 5d8d360d93 add patches to gpm-1.20.1
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@955 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-08-01 02:44:18 +00:00

29 lines
883 B
XML

<sect2>
<title>Installation of gpm</title>
<para>Download the patches for <application>gpm</application> from <ulink url="&hfile-root;"/>.</para>
<para>Install gpm by running the following commands:</para>
<note><para>The LDFLAGS environment variable must be set before
configuring gpm.</para></note>
<para><screen><userinput>patch -Np0 -i ../gpm-1.20.1-smooth-cursor.patch &amp;&amp;
patch -Np1 -i ../gpm-1.20.1-segfault.patch &amp;&amp;
patch -Np1 -i ../gpm-1.20.1-silent.patch &amp;&amp;
LDFLAGS="-lm" ./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install</userinput></screen></para>
</sect2>
<sect2>
<title>Command explanations</title>
<para><userinput>export LDFLAGS="-lm": </userinput>The math library
must be linked with gpm, as ceil() is used in some cursor scrolling
logic. LDFLAGS is only needed if you optimize gpm for size.</para>
</sect2>