Changeset 1043


Ignore:
Timestamp:
Sep 1, 2011, 6:44:38 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Fix QMAKESPECDIR value set by qmake in Makefiles.

When resolving the "default" makespec, specdir was treated
relative to the Makefile's directory while it was actually relative to
the .pro directory, which, together with the bug fixed in r1042
could produce really fancy paths on output.

File:
1 edited

Legend:

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

    r1000 r1043  
    310310        // unnecessary duplication, in the absense of symlinks on OS/2)
    311311        QString origSpec = var("QMAKESPEC_ORIGINAL");
    312         if (!origSpec.isEmpty())
    313             spec = fileFixify(QDir::cleanPath(QDir(spec).absoluteFilePath(origSpec)));
     312        if (!origSpec.isEmpty()) {
     313            // Note: Option::mkfile::qmakespec is asbolute, specdir() may be not
     314            spec = QDir(Option::mkfile::qmakespec).absoluteFilePath(origSpec);
     315            spec = fileFixify(QDir::cleanPath(spec));
     316        }
    314317    }
    315318    project->values("QMAKESPECDIR") = QStringList(spec);
Note: See TracChangeset for help on using the changeset viewer.