mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-14 16:09:13 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1142 af4574ff-66df-0310-9fd7-8a98e5e911e0
31 lines
1007 B
XML
31 lines
1007 B
XML
<sect2>
|
|
<title>Installation of <application>gpm</application></title>
|
|
|
|
<para>Download the patches for <application>gpm</application> from <ulink url="&hfile-root;"/>.</para>
|
|
|
|
<para>Install <application>gpm</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 &&
|
|
patch -Np1 -i ../gpm-1.20.1-segfault.patch &&
|
|
patch -Np1 -i ../gpm-1.20.1-silent.patch &&
|
|
LDFLAGS="-lm" ./configure --prefix=/usr &&
|
|
make &&
|
|
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>
|
|
|