--- work/mathomatic-16.0.4/makefile	2012-09-09 11:15:14.000000000 +0200
+++ makefile	2012-09-13 15:49:33.000000000 +0200
@@ -74,7 +74,7 @@
 
 # Run "make READLINE=1" to include the optional readline editing and history support:
 CFLAGS		+= $(READLINE:1=-DREADLINE)
-LDLIBS		+= $(READLINE:1=-lreadline) # Add -lncurses if needed for readline, might be called "curses" on some systems.
+LDLIBS		+= $(READLINE:1=-ledit) # Add -lncurses if needed for readline, might be called "curses" on some systems.
 # Run "make EDITLINE=1" to include the optional editline editing and history support (smaller than readline):
 CFLAGS		+= $(EDITLINE:1=-DEDITLINE)
 LDLIBS		+= $(EDITLINE:1=-leditline)