[Qt-interest] qmake automatically included library path order
Petcher, Adam
apetcher at ll.mit.edu
Thu Oct 8 16:18:07 CEST 2009
I have a qmake project file that has the LIBS variable set as follows:
LIBS = -L/usr/local/ssl/lib -lcrypto
When I generate a makefile, I get the following:
LIBS = -L/usr/lib -L/usr/local/ssl/lib -lcrypto
>From what I can tell, qmake decides that -L/usr/lib is necessary and adds it to the front of LIBS. This is a problem because I have two versions of openssl on my machine, and I want to link with the one in /usr/local/ssl/lib, not the one in /usr/lib. I can't figure out how to move the automatically included path to the end of the list. Adding -L/usr/lib to the end of the LIBS variable in my project file doesn't help -- I just end up with two instances of this path in the makefile. Anybody know of a way to change this order?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/bb75379e/attachment.html
More information about the Qt-interest-old
mailing list