Installation of GPM
Download the patches for GPM from .
Install GPM by running the following commands:
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 explanations
export LDFLAGS="-lm": 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.