diff --git a/pandoc.cabal b/pandoc.cabal
index da855a07d..30cbf190f 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -299,9 +299,9 @@ Executable test-pandoc
     Buildable:        False
   else
     if impl(ghc >= 6.12)
-      Ghc-Options:    -O2 -Wall -fno-warn-unused-do-bind
+      Ghc-Options:    -Wall -fno-warn-unused-do-bind
     else
-      Ghc-Options:    -O2 -Wall
+      Ghc-Options:    -Wall
     Extensions:       CPP
     Build-Depends:    base >= 4 && < 5, Diff, test-framework, test-framework-hunit, HUnit
     Other-Modules:    Text.Pandoc.Shared, Text.Pandoc.Highlighting, Text.Pandoc.Writers.Native