Ignore:
Timestamp:
Jun 29, 2011, 6:36:04 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: os2/gnumake: Fixed incorrect double-quoting of library names and paths containing reserved characters specified in LIBS using -l/-L prefixes (e.g. -lMagic++ would become -l"-lMagic++" in the generated Makefile). Closes #196.

File:
1 edited

Legend:

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

    r804 r872  
    218218        if (lib.startsWith("-L")) {
    219219            // this is a library path
    220             dirs.append(QMakeLocalFileName((*it).mid(2)));
     220            dirs.append(QMakeLocalFileName(.mid(2)));
    221221            ++it;
    222222            continue;
     
    403403
    404404    // LIBS defined in Profile comes first for gcc
    405     project->values("QMAKE_LIBS") += escapeFilePaths(project->values("LIBS"));
    406     project->values("QMAKE_LIBS_PRIVATE") += escapeFilePaths(project->values("LIBS_PRIVATE"));
     405    project->values("QMAKE_LIBS") += );
     406    project->values("QMAKE_LIBS_PRIVATE") += );
    407407
    408408    QStringList &configs = project->values("CONFIG");
     
    490490            QStringList libs = project->values(libVar);
    491491            for(QStringList::Iterator it = libs.begin(); it != libs.end(); ++it) {
    492                 QString lib = escapeFilePath(*it);
     492                QString &lib = *it;
     493
    493494                /* lib may be prefixed with -l which is commonly used in e.g. PRF
    494495                 * (feature) files on all platforms; remove it before prepending
     
    498499                if (lib.startsWith("-L")) {
    499500                    lib = lib.mid(2);
    500                     t << " " << optL << lib;
     501                    t << " " << optL << ;
    501502                } else {
    502503                    if (lib.startsWith("-l"))
    503504                        lib = lib.mid(2);
    504                     t << " " << opt << lib;
     505                    t << " " << opt << ;
    505506                }
    506507            }
Note: See TracChangeset for help on using the changeset viewer.