diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp
index b448f98e41d8f0fc63f1ec29567fecc7a2bf056e..8171aacc62bdd6bab98a8b6162048e5a38128ee5 100644
--- a/src/plugins/qt4projectmanager/qmakestep.cpp
+++ b/src/plugins/qt4projectmanager/qmakestep.cpp
@@ -84,7 +84,8 @@ QStringList QMakeStep::arguments(const QString &buildConfiguration)
             configarguments << "CONFIG+=release";
         if (!(defaultBuildConfiguration & QtVersion::DebugBuild) && (projectBuildConfiguration & QtVersion::DebugBuild))
             configarguments << "CONFIG+=debug";
-        arguments << configarguments;
+        if (!configarguments.isEmpty())
+            arguments << "-after" << configarguments;
     } else {
         arguments << "CONFIG+=debug_and_release";
     }