From e11744fcb71c036d537a3b3cf48dcbbb8c5b09d7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Fri, 5 Apr 2024 15:10:46 +0300 Subject: [PATCH] Makefile.in: Specify the name of libvulkan shared object for vkd3d. Vkd3d doesn't seem to like to be be built as a PE. When it tries to look for the vulkan library it does so by trying a very naive program that defines `char vkGetInstanceProcAddr()`. This misses both being marked as stdcall and the correct number of parameters to link against Vulkan-Loader in PE32 mode. This used to work with binutils pre 2.41 because it wasn't including the @NUM part in the export libs but since that was fixed we have to be explicit to skip the check. --- Makefile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.in b/Makefile.in index 58701974..a44d25ec 100644 --- a/Makefile.in +++ b/Makefile.in @@ -519,6 +519,7 @@ VKD3D_CONFIGURE_ARGS = \ --disable-tests \ --disable-demos \ --without-ncurses \ + SONAME_LIBVULKAN=vulkan-1 \ VKD3D_LDFLAGS = -static-libgcc $(CROSSLDFLAGS) VKD3D_DEPENDS = vulkan-loader vulkan-headers spirv-headers