diff --git a/bin/qt5_tool b/bin/qt5_tool
index 72996b73150fab00701619dff7f728cf538bb6a8..5e734ac49ac5ff6d21593ea6382229367355dc4f 100755
--- a/bin/qt5_tool
+++ b/bin/qt5_tool
@@ -838,7 +838,10 @@ if ( $BUILD !=  0 ) {
     my @configureArguments;
     my $configureArgumentsFromConfig = readQt5ToolConfig('configureArguments');
     push(@configureArguments, split(/ /, $configureArgumentsFromConfig)) unless $configureArgumentsFromConfig eq '';
-    push(@configureArguments, "-skip qtwebkit") if not $BUILD_WEBKIT;
+    if (!$BUILD_WEBKIT) {
+        push(@configureArguments, "-skip");
+        push(@configureArguments, "qtwebkit");
+    }
     $makeInstallRequired = grep(/^-prefix$/, @configureArguments);
 #   --- Shadow builds: Remove and re-create directory
     my $shadowBuildDir = shadowBuildFolder();