Ignore:
Timestamp:
Aug 17, 2011, 5:28:54 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/os2: QMAKESPECDIR was not passed to the compiler.

The original directory of mkspecs/os2-* was only added to the Makefile itself
but not to the response file actually used by the compiler. This affected building
all applications located outside the Qt source tree.

This is a bug of the feature introduced in r974.

File:
1 edited

Legend:

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

    r997 r999  
    314314        QString origSpec = var("QMAKESPEC_ORIGINAL");
    315315        if (!origSpec.isEmpty())
    316             spec = QDir::cleanPath(QDir(spec).absoluteFilePath(origSpec));
    317     }
     316            spec = fileFixify(QDir::cleanPath(QDir(spec).absoluteFilePath(origSpec)));
     317    }
     318    project->values("QMAKESPECDIR") = QStringList(spec);
    318319    t << "QMAKESPECDIR  = " << escapeFilePath(spec) << endl;
    319320
     
    512513    incsSemicolon += "$(QMAKESPECDIR)";
    513514    t << "INCLUDEPATH   = " << incsSemicolon << endl;
    514     /* createCompilerResponseFiles() will need QAKESPECDIR expanded) */
    515     project->values("INCLUDEPATH").append(specdir());
     515    /* createCompilerResponseFiles() will need QMAKESPECDIR expanded) */
     516    project->values("INCLUDEPATH").append(var("QMAKESPECDIR"));
    516517}
    517518
Note: See TracChangeset for help on using the changeset viewer.