diff --git a/mk/config.mk.in b/mk/config.mk.in
index 387030a03637ac2170a621acd0af1442c9c5d29c..6262638f638905b4b2b61049d344e4f9e6dd0c7b 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -238,7 +238,7 @@ GhcLibWays=p
 # 	-O is pretty desirable, otherwise no inlining of prelude
 #		things (incl "+") happens when compiling with this compiler
 
-GhcLibHcOpts= -O -split-objs -odir $(basename $*)
+GhcLibHcOpts= -O -split-objs -odir $*
 
 
 #################################################################################