I attempted to build QT as static, I used the following for ./configure (sample found in tutorial):

Qt Code:
  1. ./configure -release -opensource -static -platform linux-g++ -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -nomake examples -no-nis -no-cups -no-gtkstyle -no-opengl -no-openvg -no-glib -nomake tests
To copy to clipboard, switch view to plain text mode 

When trying to run a app configured as
Qt Code:
  1. CONFIG += console
  2. CONFIG -= app_bundle
  3. CONFIG += static
To copy to clipboard, switch view to plain text mode 
but it fails to run in a environment without QT installed, failing with:

Qt Code:
  1. error while loading shared libraries: libQt5sql.so.5: cannot open shared object file: No such file or directory
To copy to clipboard, switch view to plain text mode 

Is my ./configure wrong, or is it the .pro config?