misyltoad / dxvk-native

D3D9/11 but it runs natively on Linux!
zlib License
405 stars 30 forks source link

Q: dynapi-like interface #6

Open MayeulC opened 3 years ago

MayeulC commented 3 years ago

Hello Joshua :frog:

Quite an interesting project. However, I think every single point that led to the creation of SDL2's dynapi applies here.

Basically, is there an easy way to override the library with a newer version once it has been statically built and linked with an executable? This could help a lot with forward compatibility, though I don't even know if static linking is supported at the moment?

I suppose LD_PRELOAD might somewhat get around this issue, but I haven't tried it, and AFAIK it shouldn't work after stripping?

Thanks a lot.

bugproof commented 3 years ago

I don't think static linking is supported at the moment.

E.g. https://github.com/Joshua-Ashton/dxvk-native/blob/master/src/d3d9/meson.build#L44

Everything is using shared_library