build: Detect soname of libvulkan at configure time.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chip Davis
2018-08-21 18:08:04 +02:00
committed by Alexandre Julliard
parent 94f85114c5
commit 61697e092a
3 changed files with 59 additions and 5 deletions

View File

@@ -283,9 +283,9 @@ static HRESULT vkd3d_init_vk_global_procs(struct vkd3d_instance *instance,
if (!vkGetInstanceProcAddr)
{
if (!(instance->libvulkan = dlopen("libvulkan.so.1", RTLD_NOW)))
if (!(instance->libvulkan = dlopen(SONAME_LIBVULKAN, RTLD_NOW)))
{
ERR("Failed to load libvulkan.\n");
ERR("Failed to load libvulkan: %s.\n", dlerror());
return E_FAIL;
}