Minor changes to find lua glue library, and to set the home directory on

the correct C/Lua structure
This commit is contained in:
agc 2009-10-18 07:17:28 +00:00
parent 606ee0c668
commit 1f8267516a
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,8 @@ if f then
extension = ".dylib"
io.close(f)
end
glupkg = package.loadlib("libluanetpgp" .. extension, "luaopen_netpgp")
glupkg = package.loadlib("./" .. "libluanetpgp" .. extension,
"luaopen_netpgp")
netpgp = glupkg()
-- initialise
@ -70,7 +71,7 @@ if options.detached then
detached = "detached"
end
if options.homedir then
netpgp.homedir(netpgp, options.homedir)
netpgp.homedir(pgp, options.homedir)
end
-- initialise everything