I have both static and dynamic versions of Boost installed in /usr/local/lib
, i.e. both libboost_system.dylib
and libboost_system.a
exist.
In my qmake project file I've added the Boost libraries to the linker like so: LIBS += -lboost_system
Can I tell qmake to prefer the static versions without explicitly stating the filename, so that I can reduce the amount of qmake code to get static linking on all platforms?
It seems that this is not really possible, and specifying absolute paths to libraries is a much better solution (i.e. how CMake does it by default).