diff --git a/pkgdef/SDL2.sh b/pkgdef/SDL2.sh
index 8f47198..76c90ab 100644
--- a/pkgdef/SDL2.sh
+++ b/pkgdef/SDL2.sh
@@ -11,5 +11,6 @@ fi
 # When targeting Windows, we need to install the directx headers first.
 if [ $(uname) = "Cygwin" ] || pattern_match "*mingw*" "$BUILD_HOST"; then
     DEPENDENCIES="directx-devel"
+    PACKAGE_CONFIGURE_OPTS=--disable-directx
 fi