From 48bfd83ca5745d97cfb71ad15b3a08bdda516595 Mon Sep 17 00:00:00 2001 From: Alpyne Date: Tue, 4 Jul 2023 15:04:32 +0200 Subject: [PATCH] [d3d8] Add d3d8.sym --- src/d3d8/d3d8.sym | 7 +++++++ src/d3d8/meson.build | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/d3d8/d3d8.sym diff --git a/src/d3d8/d3d8.sym b/src/d3d8/d3d8.sym new file mode 100644 index 00000000000..357113c3c30 --- /dev/null +++ b/src/d3d8/d3d8.sym @@ -0,0 +1,7 @@ +{ + global: + Direct3DCreate8; + + local: + *; +}; diff --git a/src/d3d8/meson.build b/src/d3d8/meson.build index 3b9c178e772..faa6d1a158e 100644 --- a/src/d3d8/meson.build +++ b/src/d3d8/meson.build @@ -11,8 +11,13 @@ d3d8_src = [ 'd3d8_shader.cpp' ] +d3d8_ld_args = [] +d3d8_link_depends = [] + if platform != 'windows' lib_d3d9 = d3d9_dep + d3d8_ld_args += [ '-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3d8.sym') ] + d3d8_link_depends += files('d3d8.sym') endif d3d8_dll = shared_library('d3d8'+dll_ext, d3d8_src, d3d8_res, @@ -21,6 +26,8 @@ d3d8_dll = shared_library('d3d8'+dll_ext, d3d8_src, d3d8_res, include_directories : dxvk_include_path, install : true, objects : (not dxvk_is_msvc and platform == 'windows') ? 'd3d8'+def_spec_ext : [], - vs_module_defs : 'd3d8'+def_spec_ext + vs_module_defs : 'd3d8'+def_spec_ext, + link_args : d3d8_ld_args, + link_depends : [ d3d8_link_depends ], )