From 97d5034d1b7c337021f54e0d94f942bb8bf4ab56 Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Sat, 22 Jul 2017 22:04:39 +1000 Subject: [PATCH] Fix include path with USE_LIBSDL on macOS The cflags will contain an include path ending in "SDL2", not just "SDL", and removing just the latter leaves a stray "2" on the end. --- scripts/src/osd/sdl_cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua index 3f8e3e10bbc..e606e5ad1ea 100644 --- a/scripts/src/osd/sdl_cfg.lua +++ b/scripts/src/osd/sdl_cfg.lua @@ -86,7 +86,7 @@ if BASE_TARGETOS=="unix" then "MACOSX_USE_LIBSDL", } buildoptions { - backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL::'"), + backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL2::'"), } end end