Ignore:
Timestamp:
Jun 17, 2009, 9:33:02 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: os2/GNUMAKE: Remove commonly used -l and -L from the beginning of installation-defined libraries and library paths before prepending a compiler-dependent option.

File:
1 edited

Legend:

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

    r31 r34  
    310310        for(QStringList::Iterator it = libs.begin(); it != libs.end(); ++it) {
    311311            QString lib = maybeQuotePath(*it);
     312            /* lib may be prefixed with -l which is commonly used in e.g. PRF
     313             * (feature) files on all platforms; remove it before prepending
     314             * the compiler-specific option */
     315            if (lib.startsWith("-l"))
     316                lib = lib.mid(2);
    312317            t << " " << opt << lib;
    313318        }
     
    322327    for(QStringList::Iterator it = libDirs.begin(); it != libDirs.end(); ++it) {
    323328        QString libDir = maybeQuotePath(*it);
     329        /* libDir may be prefixed with -L which is commonly used in e.g. PRF
     330         * (feature) files on all platforms; remove it before prepending
     331         * the compiler-specific option */
     332        if (libDir.startsWith("-L"))
     333            libDir = libDir.mid(2);
    324334        t << " " << opt << libDir;
    325335    }
Note: See TracChangeset for help on using the changeset viewer.