sdl2: add patch to fix busy-loop in C library
authorPaul Cercueil <paul@crapouillou.net>
Fri, 20 Dec 2019 16:04:38 +0000 (17:04 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Dec 2019 10:27:05 +0000 (11:27 +0100)
commitc84d36db7bc5d3bdd69ba90964a31f8f304b21de
tree6e02af800895f07a3a49129541dd00017610afda
parent60f704502a2eb29dd8b986ef810f238c1419bc3f
sdl2: add patch to fix busy-loop in C library

For some obscure reason, the order in which the libdrm/libgbm libraries
are loaded matters.

Without this fix, the first call to check_modesetting() will work and
load then unload all symbols properly, but the second call to this
function will lock up as soon as dlopen() is called on libdrm.

Swapping the order in which the libdrm and libgbm libraries are loaded
is enough to fix (or work around?) this issue.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
[yann.morin.1998@free.fr: add upstream commit URL]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sdl2/0002-fix-busy-loop-in-dlopen.patch [new file with mode: 0644]