--- gpm-1.20.1/configure.in	2003-08-19 23:17:11.000000000 -0500
+++ gpm/configure.in	2003-08-19 23:16:02.000000000 -0500
@@ -134,7 +134,7 @@
 AC_SUBST(lispdir)
 
 CPPFLAGS='-I$(srcdir) $(DEFS) -include headers/config.h -Wall -DSYSCONFDIR="\"$(sysconfdir)\"" -DSBINDIR="\"$(sbindir)\""'
-LDFLAGS='-L$(srcdir)'
+LDFLAGS='-lm -L$(srcdir)'
 
 dnl AC_DEFINE_UNQUOTED(SYSCONFDIR,"$sysconfdir")
 dnl AC_DEFINE_UNQUOTED(SBINDIR,"$sbindir")
