aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromar-polo <op@omarpolo.com>2021-09-15 23:10:02 +0200
committerGitHub <noreply@github.com>2021-09-15 18:10:02 -0300
commit9218cee6f13155c7d4f5a2f12336b6bfd5dfce2b (patch)
tree5eb3e7c0d3ba65ac071025714a3401471789c571
parent5a442c2bd307bd7078eb16c6802323e300d80960 (diff)
downloadluarocks-9218cee6f13155c7d4f5a2f12336b6bfd5dfce2b.tar.gz
luarocks-9218cee6f13155c7d4f5a2f12336b6bfd5dfce2b.tar.bz2
luarocks-9218cee6f13155c7d4f5a2f12336b6bfd5dfce2b.zip
fix configuration for OpenBSD (#1352)
-rw-r--r--src/luarocks/core/cfg.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index 42f10991..ccee4ba9 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -480,6 +480,11 @@ local function make_defaults(lua_version, target_cpu, platforms, home)
480 480
481 if platforms.openbsd then 481 if platforms.openbsd then
482 defaults.arch = "openbsd-"..target_cpu 482 defaults.arch = "openbsd-"..target_cpu
483 defaults.gcc_rpath = false
484 defaults.variables.CC = os.getenv("CC") or "cc"
485 defaults.variables.CFLAGS = os.getenv("CFLAGS") or defaults.variables.CFLAGS
486 defaults.variables.LD = defaults.variables.CC
487 defaults.variables.LIBFLAG = (os.getenv("LDFLAGS") or "").." -shared"
483 end 488 end
484 489
485 if platforms.netbsd then 490 if platforms.netbsd then