Index: /trunk/Config.kmk
===================================================================
--- /trunk/Config.kmk	(revision 65348)
+++ /trunk/Config.kmk	(revision 65349)
@@ -650,4 +650,6 @@
 VBOX_WITH_VBOX_IMG =
 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.x86 darwin.amd64 linux.x86 linux.amd64 solaris.amd64 win.x86 win.amd64)
+ # Enable VPX (VP8 / VP9 codec), used for video capturing.
+ VBOX_WITH_LIBVPX = 1
  # Enables the video capturing support.
  VBOX_WITH_VIDEOREC = 1
@@ -677,6 +679,4 @@
 # Enable cURL (required for the network part of the GUI)
 VBOX_WITH_LIBCURL = 1
-# Enable VPX (VP8 / VP9 codec), used for video capturing.
-VBOX_WITH_LIBVPX = 1
 # Enable Host=>Guest Drag'n'Drop
 if1of ($(KBUILD_TARGET), darwin linux solaris win)
@@ -1148,5 +1148,10 @@
  endif
  if1of ($(KBUILD_TARGET), win)
+  # Undefine codec libraries which are not needed.
   VBOX_WITH_LIBVPX=
+  VBOX_WITH_LIBOPUS=
+  # Disable video recording (with audio support).
+  VBOX_WITH_VIDEOREC=
+  VBOX_WITH_AUDIO_VIDEOREC=
  endif
  VBOX_GUI_WITH_HIDPI=
