Changeset 152 for trunk


Ignore:
Timestamp:
Nov 10, 2006, 1:30:20 AM (19 years ago)
Author:
dmik
Message:

qmake: GNUMAKE: Fixed: The -l prefix at the beginning of libraries specified in the LIBS project variable was not correctly processed resulting into double -l (-l-l<lib>) in the generated Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r93 r152  
    638638        setMocAware(TRUE);
    639639   
    640     // add -L libs to libdir
     640    // move -L<path> constructs to libdir and remove -l from the beginning of
     641    // all other libraries (the correct linker switch will be set when
     642    // generating the LIBS variable for the makefile in writeGNUParts())
    641643    QStringList &libs = project->variables()["QMAKE_LIBS"];
    642644    for ( QStringList::Iterator libit = libs.begin(); libit != libs.end();  ) {
     
    645647            libit = libs.remove( libit );
    646648        } else {
     649            if ( (*libit).startsWith( "-l" ) )
     650                *libit = (*libit).mid(2);
    647651            ++libit;
    648652        }
Note: See TracChangeset for help on using the changeset viewer.