VK-GL-CTS icon indicating copy to clipboard operation
VK-GL-CTS copied to clipboard

use library sonames for linking

Open twoerner opened this issue 3 years ago • 3 comments

The recommended "best practices" for applications is to link to library sonames (e.g. libGL.so.1) instead of library names (e.g. libGL.so). This ensures that applications don't try to use libraries if an incompatible ABI change occurs.

Signed-off-by: Trevor Woerner [email protected]

twoerner avatar Sep 24 '21 02:09 twoerner

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 24 '21 02:09 CLAassistant

Thank you for opening this PR. I have some feedback from the TSG, these changes appear to break Android as it doesn't use *.so.1 variants.

Additionally, some have concerns over the need for this change as GL won't likely be changing the ABI as it's governed by a specification.

mnetsch avatar Aug 19 '22 17:08 mnetsch

For example, when the GLES ABI changed from GLES 1.1 to GLES 2.0, the binary was changed to libGLESv2.so instead of libGLES.so.2

mnetsch avatar Aug 19 '22 17:08 mnetsch

Thank you for your contribution, but we've decided not to merge this for the above reasons

mnetsch avatar Aug 25 '22 20:08 mnetsch