Opened 9 years ago

Closed 9 years ago

#196 closed defect (fixed)

Qmake creates invalid "LIBS" entry in Makefile,xxxxx

Reported by: rudi Owned by:
Priority: major Milestone: Qt 4.7
Component: qmake Version: 4.6.3
Severity: medium Keywords:
Cc:

Description

When a library in a *.pro file has special chars in it's name the library name in the makefile is not correctly escaped.

Example.pro:

LIBS += -lMagick++

Makefile:

LIBS = ... -l"-lMagick++"

Note that the attached diff has some whitespace changes as well. The functional part is the removal of the quotes before checking for "-l" or "-L".

Attachments (1)

gnumake.diff (3.6 KB) - added by rudi 9 years ago.
Change for gnumake.cpp

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by rudi

Attachment: gnumake.diff added

Change for gnumake.cpp

comment:1 Changed 9 years ago by rudi

Version: 4.6.24.6.3

comment:2 Changed 9 years ago by Dmitry A. Kuminov

Resolution: fixed
Status: newclosed

Rudi, thanks for the report. In r872, I applied a more generic fix (no need to unquote library names and paths before parsing).

Note: See TracTickets for help on using tickets.