diff --git a/git-hooks/qdoc-bot b/git-hooks/qdoc-bot
index fd959b4ed9e2a959c2d364453ea11753e90c1200..18f82516644f05b459a87e66e76ac788ac49b9c6 100755
--- a/git-hooks/qdoc-bot
+++ b/git-hooks/qdoc-bot
@@ -90,6 +90,7 @@ def run_qdoc(module_name):
         environment = os.environ
         environment["CCACHE_BASEDIR"] =  os.getcwd()
         environment["QT_HASH_SEED"] = "1234"
+        environment["QMAKEFLAGS"] = "CONFIG+=force_bootstrap"
         for cmd in ["/bin/sh ./configure --opensource --confirm-license --release".split()
                    , "make sub-src-qmake_all".split()
                    , ["/bin/bash", "-c", "if [ -f src/tools/Makefile ] ; then make -Csrc/tools sub-qdoc; else make -Csrc sub-qdoc ; fi"] # build qdoc