summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r--scripts/src/osd/sdl.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua
index 24c08f4de5a..3943dcef7a3 100644
--- a/scripts/src/osd/sdl.lua
+++ b/scripts/src/osd/sdl.lua
@@ -38,7 +38,7 @@ function maintargetosdoptions(_target)
}
end
linkoptions {
- string.gsub(os.outputof("pkg-config --libs fontconfig"), '[\r\n]+', ' '),
+ backtick("pkg-config --libs fontconfig"),
}
end
@@ -230,7 +230,7 @@ if BASE_TARGETOS=="unix" then
end
else
linkoptions {
- string.gsub(os.outputof(sdlconfigcmd() .. " --libs | sed 's/-lSDLmain//'"), '[\r\n]+', ' '),
+ backtick(sdlconfigcmd() .. " --libs | sed 's/-lSDLmain//'"),
}
end
else
@@ -250,7 +250,7 @@ if BASE_TARGETOS=="unix" then
end
end
linkoptions {
- string.gsub(os.outputof(sdlconfigcmd() .. " --libs"), '[\r\n]+', ' '),
+ backtick(sdlconfigcmd() .. " --libs"),
}
if _OPTIONS["targetos"]~="haiku" then
links {
@@ -271,7 +271,7 @@ if BASE_TARGETOS=="unix" then
end
elseif BASE_TARGETOS=="os2" then
linkoptions {
- string.gsub(os.outputof(sdlconfigcmd() .. " --libs"), '[\r\n]+', ' '),
+ backtick(sdlconfigcmd() .. " --libs"),
}
links {
"pthread"