diff --git a/mk/config.mk.in b/mk/config.mk.in
index 1559cd33718221efc9b92d915bc4335d206a9866..117ed5d1209cbeb7bbdae2b6cbecd65c54645391 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -232,8 +232,8 @@ endif
 # GhcRtsHcOpts is used when compiling .hc files.
 # GhcRtsCcOpts is used when compiling .c  files.
 
-GhcRtsHcOpts=
-GhcRtsCcOpts=
+GhcRtsHcOpts=-O2
+GhcRtsCcOpts=-O2 -optc-fomit-frame-pointer
 
 # Build the Haskell Readline bindings?
 #