gtk: Use CMAKE_DL_LIBS

Fixes building snes9x-gtk on systems where dlopen is in libc
and without an empty libdl stub.
This commit is contained in:
nia 2023-11-20 00:13:18 +01:00
parent 5c65edbbca
commit 5fb99b7ad6
1 changed files with 1 additions and 2 deletions

View File

@ -64,9 +64,8 @@ pkg_check_modules(XRANDR REQUIRED xrandr)
find_library(X11 X11 REQUIRED)
find_library(XEXT Xext REQUIRED)
find_library(DL dl REQUIRED)
list(APPEND ARGS ${SDL2_CFLAGS} ${GTK_CFLAGS} ${XRANDR_CFLAGS})
list(APPEND LIBS ${X11} ${XEXT} ${DL} ${SDL2_LIBRARIES} ${GTK_LIBRARIES} ${XRANDR_LIBRARIES})
list(APPEND LIBS ${X11} ${XEXT} ${CMAKE_DL_LIBS} ${SDL2_LIBRARIES} ${GTK_LIBRARIES} ${XRANDR_LIBRARIES})
list(APPEND SOURCES src/gtk_display_driver_opengl.cpp
../common/video/glx_context.cpp