Avoid conflicts with multiple versions of udev by first trying the library that is linked with the executable, if any, and then picking the one that is in the build environment.

This fixes joystick detection for applications using the Steam Linux Runtime
This commit is contained in:
Sam Lantinga
2016-11-29 05:34:20 -08:00
parent 6afabd76ed
commit f7eea9848d
7 changed files with 41 additions and 3 deletions

View File

@@ -360,4 +360,7 @@
/* Enable ime support */
#undef SDL_USE_IME
/* Enable dynamic udev support */
#undef SDL_UDEV_DYNAMIC
#endif /* SDL_config_h_ */