[Interest] qmake adding unwanted lib flag to makefile

Alexander Görtz nylocx at googlemail.com
Wed Nov 28 14:33:53 CET 2012


I have the following problem.
I have a lib let's call it libA in /usr/lib64 and /usr/local/lib the only 
difference is the Version of libA (the one in /usr/local/lib is newer).
If I now create a simple qmake project it generates a Makefile with the line:
LIBS          = $(SUBLIBS)  -L/usr/lib64 -lQtGui -lQtCore -lpthread

The problem with this line is the -L/usr/lib64 as this makes the linker look 
into /usr/lib64 for libA where it finds the old, wrong, lib.

My question is if there is any possibility to tell qmake not to add the -
L/usr/lib to the makefile or if this is not possible to add -L/usr/local/lib 
even before that.

I hope you're able to understand my problem. Any help is appreciated.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121128/01f7d21a/attachment.sig>

More information about the Interest mailing list