In staticlib projects, staticlib LFLAGS not passed to the linker. In fact, there is no documented way to pass such flags.
The decision depends on the generator.
For msvc_nmake , LIBFLAGS instead passed to the linker. To get a detailed output, you can add
QMAKE_LIBFLAGS += /VERBOSE
To make sure that it works, on any system you can call qmake -spec win32-msvc2008 ; the specific version of msvc does not matter.
For unixmake , AR used to invoke the linker, so you need to add flags to QMAKE_AR . To get a detailed output, you can add
QMAKE_AR += -v
To check, call qmake -spec macx-llvm ; any other unix specification should work as well.
source share