[vlc-commits] [Git][videolan/vlc][master] contrib: mingw64: do not build and provide `libd3d12.a`

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Aug 26 16:08:21 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8384dd1c by Fatih Uzunoglu at 2026-08-26T13:55:21+00:00
contrib: mingw64: do not build and provide `libd3d12.a`

- - - - -


1 changed file:

- contrib/src/mingw64/rules.mak


Changes:

=====================================
contrib/src/mingw64/rules.mak
=====================================
@@ -197,11 +197,15 @@ endif
 	install $</mingw-w64-headers/include/d3d12shader.h       "$(PREFIX)/include"
 
 	# Trick mingw-w64 into just building libd3d12.a
-	$(MAKEBUILDDIR)
-	$(MAKECONFIGURE) $(MINGW64_MINIMALCRT_CONF)
-	mkdir -p $(BUILD_DIR)/mingw-w64-crt/$(MINGW64_BUILDDIR)
-	+$(MAKEBUILD) -C mingw-w64-crt LIBRARIES=$(MINGW64_BUILDDIR)/libd3d12.a DATA= HEADERS=
-	+$(MAKEBUILD) -C mingw-w64-crt $(MINGW64_BUILDDIR)_LIBRARIES=$(MINGW64_BUILDDIR)/libd3d12.a install-$(MINGW64_BUILDDIR)LIBRARIES
+	# Since we depend on Windows 7, the symbols are resolved at runtime and
+	# until the minimum Windows version is bumped, these should be commented
+	# out. Not providing the libs also causes build failure, in case the
+	# symbols are mistakenly directly used rather than dynamic resolving.
+	# $(MAKEBUILDDIR)
+	# $(MAKECONFIGURE) $(MINGW64_MINIMALCRT_CONF)
+	# mkdir -p $(BUILD_DIR)/mingw-w64-crt/$(MINGW64_BUILDDIR)
+	# +$(MAKEBUILD) -C mingw-w64-crt LIBRARIES=$(MINGW64_BUILDDIR)/libd3d12.a DATA= HEADERS=
+	# +$(MAKEBUILD) -C mingw-w64-crt $(MINGW64_BUILDDIR)_LIBRARIES=$(MINGW64_BUILDDIR)/libd3d12.a install-$(MINGW64_BUILDDIR)LIBRARIES
 	touch $@
 
 .sum-uiautomationcore: .sum-mingw64



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8384dd1c308987c4eb800aaada2bb0819e5d8bb8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8384dd1c308987c4eb800aaada2bb0819e5d8bb8
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list