Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
When and why qmake adds -soname on Linux?
eliseev last edited by
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.