mirror of https://github.com/doitsujin/dxvk
build: Use a different SONAME for the glfw WSI
Selecting the GLFW WSI gives DXVK an incompatible ABI: for example, CreateDevice takes a `SDL_Window *` parameter in the default SDL WSI, but takes a `GLFWwindow *` instead in the GLFW WSI. This means it should get a different name, so that binaries expecting one WSI don't unexpectedly load the other. Resolves: https://github.com/doitsujin/dxvk/issues/3321 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
306919047b
commit
04113bdea0
|
@ -121,8 +121,12 @@ else
|
||||||
lib_glfw = cpp.find_library('glfw')
|
lib_glfw = cpp.find_library('glfw')
|
||||||
compiler_args += ['-DDXVK_WSI_GLFW']
|
compiler_args += ['-DDXVK_WSI_GLFW']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
dxvk_name_prefix = 'libdxvk_'
|
if dxvk_wsi == 'sdl2'
|
||||||
|
dxvk_name_prefix = 'libdxvk_'
|
||||||
|
else
|
||||||
|
dxvk_name_prefix = 'libdxvk_@0@_'.format(dxvk_wsi)
|
||||||
|
endif
|
||||||
|
|
||||||
link_args += [
|
link_args += [
|
||||||
'-static-libgcc',
|
'-static-libgcc',
|
||||||
|
|
Loading…
Reference in New Issue