Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

When and why qmake adds -soname on Linux?



  • Hello,

    I have several libraries in the project. For one of them qmake adds a -soname parameter to LFLAGS as "libname.so.1". This is something unwanted. How do I control it?

    Setting QMAKE_LFLAGS_SONAME only makes things worse because qmake then uses QMAKE_LFLAGS_SONAME value AND appends "libname.so.1" to it creating an invalid makefile.

    Curiously, that it happens to only one library and I don't see the reason why because others have very similar and mostly shared settings.


Log in to reply