Index: src/cmdline/Makefile.in
--- src/cmdline/Makefile.in.orig	2011-01-22 15:46:56.000000000 +0100
+++ src/cmdline/Makefile.in	2011-01-23 14:06:58.000000000 +0100
@@ -98,7 +98,7 @@
 LEXLIB = @LEXLIB@
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
 LIBOBJS = @LIBOBJS@
-LIBS = ../libdwarf/libdwarf.a
+LIBS = ../libdwarf/libdwarf.a -lreadline -lncurses -lm
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
 MKDIR_P = @MKDIR_P@
@@ -185,7 +185,7 @@
 		sh_pe_utils.h\
 		sh_pe_utils.c
 
-dwarf_CFLAGS = -O0 -lm -lreadline
+dwarf_CFLAGS = -O0
 all: $(BUILT_SOURCES)
 	$(MAKE) $(AM_MAKEFLAGS) all-am
 
