Fixed nil variable reference in os.findlib() on Linux
This commit is contained in:
parent
475e8ebd12
commit
3959037db3
@ -40,4 +40,7 @@ solution "PremakeTestbox"
|
|||||||
execute = function ()
|
execute = function ()
|
||||||
os.copyfile("premake4.lua", "../premake4.lua")
|
os.copyfile("premake4.lua", "../premake4.lua")
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print(os.findlib("Xlib"))
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
path = os.getenv("DYLD_LIBRARY_PATH")
|
path = os.getenv("DYLD_LIBRARY_PATH")
|
||||||
else
|
else
|
||||||
formats = { "lib%s.so", "%s.so" }
|
formats = { "lib%s.so", "%s.so" }
|
||||||
path = os.getenv("LD_LIBRARY_PATH")
|
path = os.getenv("LD_LIBRARY_PATH") or ""
|
||||||
|
|
||||||
local f = io.open("/etc/ld.so.conf", "r")
|
local f = io.open("/etc/ld.so.conf", "r")
|
||||||
if f then
|
if f then
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user