[Qt-interest] qmake automatically included library path order
Thiago Macieira
thiago at kde.org
Thu Oct 8 17:50:17 CEST 2009
Em Quinta-feira 08 Outubro 2009, às 16:18:07, Petcher, Adam escreveu:
> 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?
I think that was added by the OpenSSL check in QtNetwork.
It's fixed in Qt 4.5.3 because it broke the build on AIX with xlC.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14 San Francisco, California: Nov 2 - 4
http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/04f71d2b/attachment.bin
More information about the Qt-interest-old
mailing list