From c4805428af0e5862bf340c5010f41ae04fed1ae4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 22 Aug 2013 13:34:59 -0300 Subject: Use list from http://stackoverflow.com/a/15853231/1793220 when detecting mingw libraries. Closes #139. --- src/luarocks/cfg.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 5d918b13..9508ce88 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -316,6 +316,19 @@ if detected.mingw32 then defaults.variables.LD = "mingw32-gcc" defaults.variables.CFLAGS = "-O2" defaults.variables.LIBFLAG = "-shared" + defaults.external_deps_patterns = { + bin = { "?.exe", "?.bat" }, + -- mingw lookup list from http://stackoverflow.com/a/15853231/1793220 + -- ...should we keep ?.lib at the end? It's not in the above list. + lib = { "lib?.dll.a", "?.dll.a", "lib?.a", "cyg?.dll", "lib?.dll", "?.dll", "?.lib" }, + include = { "?.h" } + } + defaults.runtime_external_deps_patterns = { + bin = { "?.exe", "?.bat" }, + lib = { "cyg?.dll", "?.dll", "lib?.dll" }, + include = { "?.h" } + } + end if detected.unix then -- cgit v1.2.3-55-g6feb