From 7018e93c327701b567103ab2614ddc0bc5cb7401 Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Sat, 30 Mar 2024 16:52:05 +0100 Subject: [PATCH] Add C compiler flags for Wayland EGL from pkgconfig to OSD build options on Linux. (#12194) This will hopefully fix compiling on openSUSE where Wayland headers are in /usr/include/wayland. --- scripts/src/osd/sdl_cfg.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua index 17132ad814a..75f294a78b6 100644 --- a/scripts/src/osd/sdl_cfg.lua +++ b/scripts/src/osd/sdl_cfg.lua @@ -54,6 +54,11 @@ if _OPTIONS["USE_WAYLAND"]=="1" then defines { "SDLMAME_USE_WAYLAND", } + if _OPTIONS["targetos"]=="linux" then + buildoptions { + backtick(pkgconfigcmd() .. " --cflags wayland-egl"), + } + end end if _OPTIONS["NO_USE_XINPUT"]=="1" then