summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Jeffrey Clark <dude@zaplabs.com>2016-03-28 23:07:14 -0500
committer Jeffrey Clark <dude@zaplabs.com>2016-03-28 23:09:03 -0500
commit4b508475603cdc267bd9f318f1306901ffb58a7e (patch)
tree454b94cc2526cf61927037fbaf1f25ea4f6698ac
parent00b56f38c87f9fdcda587971cd762e803082943d (diff)
Multiple link and include path support (nw)
ie. USE_SYSTEM_LIB_FLAC=FLAC,ogg:/usr/include
-rw-r--r--scripts/extlib.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/extlib.lua b/scripts/extlib.lua
index 7347a734c18..0ed3415377d 100644
--- a/scripts/extlib.lua
+++ b/scripts/extlib.lua
@@ -92,7 +92,12 @@ function ext_best(lib, default, idx)
-- override default if provided (format <libname:includedir>)
local x = opt:explode(":")
if x[idx]~=nil then
- found = x[idx]
+ local y = x[idx]:explode(",")
+ if y[1]~=nil then
+ found = y
+ else
+ found = x[idx]
+ end
end
end
return found