diff --git a/pandoc.cabal b/pandoc.cabal
index 963982107..6e06ce34b 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -277,7 +277,7 @@ Library
   if os(windows)
     Cpp-options:      -D_WINDOWS
   Ghc-Options:   -rtsopts -Wall -fno-warn-unused-do-bind
-  Ghc-Prof-Options: -auto-exported -rtsopts
+  Ghc-Prof-Options: -fprof-auto-exported -rtsopts
   Default-Language: Haskell98
   Other-Extensions:   PatternGuards, OverloadedStrings,
                       ScopedTypeVariables, GeneralizedNewtypeDeriving,
@@ -379,7 +379,7 @@ Executable pandoc
   else
      Build-Depends: network >= 2 && < 2.6
   Ghc-Options:   -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
-  Ghc-Prof-Options: -auto-exported -rtsopts -with-rtsopts=-K16m
+  Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
   if os(windows)
     Cpp-options:      -D_WINDOWS
   Default-Language: Haskell98