Command explanations LDFLAGS="-lm": The math library must be linked with gpm, as ceil() is used in some cursor scrolling logic. ldconfig -n -l : During installation, gpm outputs a message to run the above command to create the proper library links.