title: How to build QT with -reduce-relocations
body: <p>I am using Ubuntu 16.04, cmake 3.10.1, QT 5.6.2.<br>
  I used to develop applications on windows, so I am not sure how to trouble shoot on linux platform.<br></p>
  
  <p>When I compile my code, I get error<br></p>
  
  <pre><code>In file included from /usr/local/Qt/5.6.2/5.6/gcc_64/include/QtCore/qcoreapplication.h:37:0,
                   from /usr/local/Qt/5.6.2/5.6/gcc_64/include/QtWidgets/qapplication.h:37,
                   from /usr/local/Qt/5.6.2/5.6/gcc_64/include/QtWidgets/QApplication:1,
                   from /home/sulfred/Documents/SoftwareDev/github/SulfredLee/PcapReplayer/BackEnd/main.cpp:3:
  /usr/local/Qt/5.6.2/5.6/gcc_64/include/QtCore/qglobal.h:1087:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
   #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
      ^
  </code></pre>
  
  <p>Q1.<br>
  How to verify that my Qt was built with <code>-reduce-relocations</code>.<br></p>