diff --git a/ghc/lib/std/Makefile b/ghc/lib/std/Makefile
index 1abffe689192433369d4cce9504ac782240b70e9..cdf7963ec6b0f167f450785cca3b9e877258c7e5 100644
--- a/ghc/lib/std/Makefile
+++ b/ghc/lib/std/Makefile
@@ -31,7 +31,7 @@ else
 # Hack by SPJ to delay if-then-else until the pattern rule when we have $*
 PACKAGE = $(subst ~, ,$(word $(words dummy $(findstr $(notdir $*), PrelMain )), -package-name~std))
 endif
-LIBRARY = libHS$(PACKAGE)$(_way).a
+LIBRARY = libHSstd$(_way).a
 
 LIBOBJS = $(HS_OBJS)
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"