diff --git a/build.sh b/build.sh
index 716e4b0cc43c8c5c5287d66489460e84ca4c5c06..d71ae06f71353b5c4dcaecef2f782e634c0e174c 100755
--- a/build.sh
+++ b/build.sh
@@ -323,8 +323,8 @@ build_generic_win32()
 	echo "Building libxml2 (this may take a while)..." | tee -a $LOGFILE
 	cd $ROOT/3rdparty/libxml2 || failure
 	chmod +x configure >> $LOGFILE 2>&1 || failure
-	if [ -f "$PREFIX/$TARGET_HOST/bin/$TARGET_HOST-libxml-2.0-config" ]; then
-		LIBXML2_CONFIG="$PREFIX/$TARGET_HOST/bin/$TARGET_HOST-libxml-2.0-config"
+	if [ -f "$PREFIX/$TARGET_HOST/bin/$TARGET_HOST-xml2-config" ]; then
+		LIBXML2_CONFIG="$PREFIX/$TARGET_HOST/bin/$TARGET_HOST-xml2-config"
 		export LIBXML2_CONFIG
 		echo "Cross-compile LIBXML2_CONFIG: $LIBXML2_CONFIG" >> $LOGFILE
 	fi