From 280e11a5251c005eab9444f5087b9064efd67ec1 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 30 Aug 2022 08:35:45 +0200 Subject: [PATCH] contrib: vulkan-loader: don't assume the build is static On Windows the build is never static. We should not pretend it has built a static library. --- contrib/src/vulkan-loader/rules.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/src/vulkan-loader/rules.mak b/contrib/src/vulkan-loader/rules.mak index 5852f006f738..f922db99429d 100644 --- a/contrib/src/vulkan-loader/rules.mak +++ b/contrib/src/vulkan-loader/rules.mak @@ -65,6 +65,8 @@ ifdef HAVE_WIN32 # CMake will generate a .pc file with -lvulkan even if the static library # generated is libvulkan.dll.a. It also forget to link with libcfgmgr32. sed -i.orig -e "s,-lvulkan,-lvulkan.dll -lcfgmgr32," $(BUILD_DIR)/loader/vulkan.pc +else + $(call pkg_static,"build/loader/vulkan.pc") endif +$(CMAKEBUILD)