aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 6b0d14a9..56a9a965 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -345,6 +345,10 @@ if detected.cygwin then
345 defaults.variables.LIBFLAG = "-shared" 345 defaults.variables.LIBFLAG = "-shared"
346end 346end
347 347
348if detected.bsd then
349 defaults.variables.STATFLAG = "-f '%Op'"
350end
351
348if detected.macosx then 352if detected.macosx then
349 defaults.external_lib_extension = "dylib" 353 defaults.external_lib_extension = "dylib"
350 defaults.arch = "macosx-"..proc 354 defaults.arch = "macosx-"..proc
@@ -352,9 +356,6 @@ if detected.macosx then
352 defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc" 356 defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc"
353 defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc" 357 defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc"
354 defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load" 358 defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load"
355end
356
357if detected.bsd then
358 defaults.variables.STATFLAG = "-f '%A'" 359 defaults.variables.STATFLAG = "-f '%A'"
359end 360end
360 361
@@ -378,7 +379,6 @@ end
378if detected.openbsd then 379if detected.openbsd then
379 defaults.arch = "openbsd-"..proc 380 defaults.arch = "openbsd-"..proc
380 defaults.platforms = {"unix", "bsd", "openbsd"} 381 defaults.platforms = {"unix", "bsd", "openbsd"}
381 defaults.variables.STATFLAG = "-f '%Op'"
382end 382end
383 383
384if detected.solaris then 384if detected.solaris then