diff options
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r-- | src/luarocks/cfg.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 25f22e26..ace0dbf1 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -190,6 +190,8 @@ if detected.windows then | |||
190 | lib = { "?.dll", "lib?.dll" }, | 190 | lib = { "?.dll", "lib?.dll" }, |
191 | include = { "?.h" } | 191 | include = { "?.h" } |
192 | } | 192 | } |
193 | defaults.export_lua_path = "SET LUA_PATH=%s" | ||
194 | defaults.export_lua_cpath = "SET LUA_CPATH=%s" | ||
193 | defaults.local_cache = home.."/cache/luarocks" | 195 | defaults.local_cache = home.."/cache/luarocks" |
194 | end | 196 | end |
195 | 197 | ||
@@ -223,6 +225,8 @@ if detected.mingw32 then | |||
223 | lib = { "?.dll", "lib?.dll" }, | 225 | lib = { "?.dll", "lib?.dll" }, |
224 | include = { "?.h" } | 226 | include = { "?.h" } |
225 | } | 227 | } |
228 | defaults.export_lua_path = "SET LUA_PATH=%s" | ||
229 | defaults.export_lua_cpath = "SET LUA_CPATH=%s" | ||
226 | defaults.local_cache = home.."/cache/luarocks" | 230 | defaults.local_cache = home.."/cache/luarocks" |
227 | end | 231 | end |
228 | 232 | ||
@@ -251,6 +255,8 @@ if detected.unix then | |||
251 | lib = { "lib?.so", "lib?.so.*" }, | 255 | lib = { "lib?.so", "lib?.so.*" }, |
252 | include = { "?.h" } | 256 | include = { "?.h" } |
253 | } | 257 | } |
258 | defaults.export_lua_path = "export LUA_PATH='%s'" | ||
259 | defaults.export_lua_cpath = "export LUA_CPATH='%s'" | ||
254 | defaults.local_cache = home.."/.cache/luarocks" | 260 | defaults.local_cache = home.."/.cache/luarocks" |
255 | if not defaults.variables.CFLAGS:match("-fPIC") then | 261 | if not defaults.variables.CFLAGS:match("-fPIC") then |
256 | defaults.variables.CFLAGS = defaults.variables.CFLAGS.." -fPIC" | 262 | defaults.variables.CFLAGS = defaults.variables.CFLAGS.." -fPIC" |