glfs/general/sysutils/gpm/gpm-inst.xml

31 lines
1.0 KiB
XML
Raw Normal View History

<sect2>
<title>Installation of <application><acronym>gpm</acronym></application></title>
<para>Download the patches for <application><acronym>gpm</acronym></application> from <ulink url="&hfile-root;"/>.</para>
<para>Install <application><acronym>gpm</acronym></application> by running the following commands:
</para>
<!--
<note><para>The <envar>LDFLAGS</envar> environment variable must be set before
configuring <application>gpm</application>.</para></note> -->
<screen><userinput><command>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</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><command>export LDFLAGS="-lm"</command> : The math library
must be linked with gpm, as ceil() is used in some cursor scrolling
logic. <envar>LDFLAGS</envar> is only needed if you optimize gpm for size.
</para>
</sect2>