diff options
| -rw-r--r-- | src/luarocks/core/cfg.lua | 5 |
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 |
