--- utils/sercmd/Makefile.orig	2015-01-11 14:54:24.246707463 +0100
+++ utils/sercmd/Makefile	2015-01-11 14:56:12.692702813 +0100
@@ -12,7 +12,7 @@
 	NAME=sercmd
 endif
 
-readline_locations= /usr/include/readline/readline.h \
+readline_locations= /usr/local/include/readline/readline.h \
 					$(LOCALBASE)/include/readline/readline.h
 
 use_readline ?=
@@ -71,8 +71,8 @@
 endif
 
 ifeq ($(use_readline),1)
-	DEFS+=-DUSE_READLINE
-	LIBS+=-lreadline -lncurses
+	DEFS+=-DUSE_READLINE -I${LOCALBASE}/include
+	LIBS+=-L${LOCALBASE}/lib -lreadline -lncurses
 endif
 
 
