title: Recommended flags for a minimalistic Qt build
body: <p>I am trying to build Qt because it is required for Visual Studio 2010. The build script (configure.exe) is quite straightforward but by default it takes ages to compile. After waiting for an hour on a fast notebook with an SSD, I've given up (using no flags, just configure.exe).</p>
  
  <p>What are the recommended flags for a basic, lightweight Qt application? I mean for someone learning Qt, who doesn't need <a href="http://en.wikipedia.org/wiki/WebKit" rel="nofollow noreferrer">WebKit</a> and so on.</p>
  
  <p><strong>I've collected the most useful links I found:</strong></p>
  
  <p>The reference page for Qt configure: <a href="http://doc.qt.io/qt-4.8/configure-options.html" rel="nofollow noreferrer">http://doc.qt.io/qt-4.8/configure-options.html</a></p>
  
  <p>Ben's advice from this question: <a href="https://stackoverflow.com/questions/1644172/building-qt-4-5-with-visual-c-2010">Building Qt 4.5 with Visual C++ 2010</a></p>
  
  <blockquote>
    <p>-no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast</p>
  </blockquote>
  
  <p>Rubenvb's advice from this question: <a href="https://stackoverflow.com/questions/4112972/how-to-compile-qt-as-static">How to compile Qt as static</a></p>
  
  <blockquote>
    <ol>
    <li>Disable debug: <code>-release</code></li>
    <li>Disable modules you don't need, especially QtWebKit: <code>-no-webkit
    -no-script -no-scripttools -no-qt3support -nomake demos -nomake tools -nomake examples</code></li>
    <li>Disable LTCG support, which has the nasty side effect of generating huge
    static libraries: <code>no-ltcg</code></li>
    </ol>
  </blockquote>