Installation of GPM
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 &&
ldconfig -n -l /usr/lib/libgpm.so.1.19.0
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.
ldconfig -n -l : During installation, gpm outputs a
message to run the above command to create the proper library links.