Fixed nil variable reference in os.findlib() on Linux

This commit is contained in:
starkos 2009-01-09 20:31:46 +00:00
parent 475e8ebd12
commit 3959037db3
3 changed files with 37 additions and 34 deletions

View File

@ -40,4 +40,7 @@ solution "PremakeTestbox"
execute = function ()
os.copyfile("premake4.lua", "../premake4.lua")
end
}
}
print(os.findlib("Xlib"))

View File

@ -22,7 +22,7 @@
path = os.getenv("DYLD_LIBRARY_PATH")
else
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")
if f then

File diff suppressed because one or more lines are too long