diff --git a/ghc/lib/misc/Makefile b/ghc/lib/misc/Makefile
index c48591a307b1368f7a3c0181aa865211d2ad7b48..ba23358254e6f351925a9350228765d338b4629d 100644
--- a/ghc/lib/misc/Makefile
+++ b/ghc/lib/misc/Makefile
@@ -21,7 +21,7 @@ HS_SRCS	= $(wildcard *.lhs)
 
 # Remove Readline.lhs if readline.h isn't available.
 ifneq "$(GhcLibsWithReadline)" "YES"
-  HS_SRCS := $(filter-out src/Readline.lhs,$(HS_SRCS))
+  HS_SRCS := $(filter-out Readline.lhs,$(HS_SRCS))
 else
   SRC_HC_OPTS += -I$(ReadlineIncludePath)
 endif