Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QMAKE_LFLAGS is ignored by qmake when building static library



  • I've only tried this on Windows so far, will try another platform shortly.

    Is this a bug?

    Isn't this where you would declare other libs you want included in yours? (I.e. -wholearchive type behavior?)

    On Windows, the LIBFLAGS section of the Makefile is blank when it should contain whatever it is I put in my PRO file.

    If I manually edit the Makefile at LIBFLAGS and put the desired static libs there, I get the results that were expected (and the same results that come from linking when using Visual Studio.)


  • Lifetime Qt Champion

    Hi,

    Can you show your .pro file ?


Log in to reply