aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cfg.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 87777b86..5e43535b 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -342,6 +342,7 @@ if detected.windows then
342 localappdata = os.getenv("USERPROFILE").."/Local Settings/Application Data" 342 localappdata = os.getenv("USERPROFILE").."/Local Settings/Application Data"
343 end 343 end
344 defaults.local_cache = localappdata.."/LuaRocks/Cache" 344 defaults.local_cache = localappdata.."/LuaRocks/Cache"
345 defaults.web_browser = "start"
345end 346end
346 347
347if detected.mingw32 then 348if detected.mingw32 then
@@ -403,6 +404,7 @@ if detected.unix then
403 if not defaults.variables.CFLAGS:match("-fPIC") then 404 if not defaults.variables.CFLAGS:match("-fPIC") then
404 defaults.variables.CFLAGS = defaults.variables.CFLAGS.." -fPIC" 405 defaults.variables.CFLAGS = defaults.variables.CFLAGS.." -fPIC"
405 end 406 end
407 defaults.web_browser = "xdg-open"
406end 408end
407 409
408if detected.cygwin then 410if detected.cygwin then
@@ -436,6 +438,7 @@ if detected.macosx then
436 end 438 end
437 defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc" 439 defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc"
438 defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc" 440 defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc"
441 defaults.web_browser = "open"
439end 442end
440 443
441if detected.linux then 444if detected.linux then