diff options
Diffstat (limited to 'qmake/generators/win32/mingw_make.cpp')
-rw-r--r-- | qmake/generators/win32/mingw_make.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/qmake/generators/win32/mingw_make.cpp b/qmake/generators/win32/mingw_make.cpp index b3cf598ddc..391e83c246 100644 --- a/qmake/generators/win32/mingw_make.cpp +++ b/qmake/generators/win32/mingw_make.cpp @@ -290,6 +290,9 @@ void MingwMakefileGenerator::init() project->values("QMAKE_LFLAGS").append(QString("-Wl,") + escapeFilePath(defFileName)); } + if (project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") + project->values("QMAKE_LFLAGS").append("-static"); + MakefileGenerator::init(); // precomp @@ -320,14 +323,6 @@ void MingwMakefileGenerator::init() } } -void MingwMakefileGenerator::fixTargetExt() -{ - if (project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") { - project->values("QMAKE_LFLAGS").append("-static"); - } - Win32MakefileGenerator::fixTargetExt(); -} - void MingwMakefileGenerator::writeIncPart(QTextStream &t) { t << "INCPATH = "; |