diff options
| author | Luau <luau.project@gmail.com> | 2025-04-14 14:41:25 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-14 14:41:25 -0300 |
| commit | ff59063974d8fae152343f6712baf8e51f38edf9 (patch) | |
| tree | 4a32ee93b682e0d66333c92eeb577ddb9cf42baa /src | |
| parent | 1b9a3f2f0500196440c7f26c85366c651edd985e (diff) | |
| download | luarocks-ff59063974d8fae152343f6712baf8e51f38edf9.tar.gz luarocks-ff59063974d8fae152343f6712baf8e51f38edf9.tar.bz2 luarocks-ff59063974d8fae152343f6712baf8e51f38edf9.zip | |
fix(cygwin): external_deps_patterns and runtime_external_deps_patterns (#1782)
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/core/cfg.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 8c2d7d79..1be65c27 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
| @@ -413,13 +413,24 @@ local function make_defaults(lua_version, target_cpu, platforms, home) | |||
| 413 | end | 413 | end |
| 414 | 414 | ||
| 415 | if platforms.cygwin then | 415 | if platforms.cygwin then |
| 416 | defaults.lib_extension = "so" -- can be overridden in the config file for mingw builds | 416 | defaults.lib_extension = "dll" |
| 417 | defaults.arch = "cygwin-"..target_cpu | 417 | defaults.arch = "cygwin-"..target_cpu |
| 418 | defaults.cmake_generator = "Unix Makefiles" | 418 | defaults.cmake_generator = "Unix Makefiles" |
| 419 | defaults.variables.CC = "echo -llua | xargs " .. (os.getenv("CC") or "gcc") | 419 | defaults.variables.CC = "echo -llua | xargs " .. (os.getenv("CC") or "gcc") |
| 420 | defaults.variables.LD = "echo -llua | xargs " .. (os.getenv("CC") or "gcc") | 420 | defaults.variables.LD = "echo -llua | xargs " .. (os.getenv("CC") or "gcc") |
| 421 | defaults.variables.LIBFLAG = "-shared" | 421 | defaults.variables.LIBFLAG = "-shared" |
| 422 | defaults.link_lua_explicitly = true | 422 | defaults.link_lua_explicitly = true |
| 423 | defaults.external_deps_patterns = { | ||
| 424 | bin = { "?.exe", "?.bat", "?" }, | ||
| 425 | lib = { "cyg?.dll", "lib?.so", "lib?.so.*", "lib?.dll.a", "?.dll.a", | ||
| 426 | "lib?.a", "lib?.dll", "?.dll" }, | ||
| 427 | include = { "?.h" } | ||
| 428 | } | ||
| 429 | defaults.runtime_external_deps_patterns = { | ||
| 430 | bin = { "?.exe", "?.bat" }, | ||
| 431 | lib = { "cyg?.dll", "lib?.so", "?.dll", "lib?.dll" }, | ||
| 432 | include = { "?.h" } | ||
| 433 | } | ||
| 423 | end | 434 | end |
| 424 | 435 | ||
| 425 | if platforms.msys then | 436 | if platforms.msys then |
