Command explanations 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.