mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
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:
10
configure
vendored
10
configure
vendored
@@ -21578,6 +21578,16 @@ fi
|
||||
|
||||
$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
|
||||
|
||||
|
||||
udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
|
||||
if test x$udev_lib != x; then
|
||||
echo "-- dynamic udev -> $udev_lib"
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define SDL_UDEV_DYNAMIC "$udev_lib"
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user