|
@@ -16,7 +16,10 @@ package("pcre2")
|
|
|
|
|
|
on_load(function (package)
|
|
on_load(function (package)
|
|
local bitwidth = package:config("bitwidth") or "8"
|
|
local bitwidth = package:config("bitwidth") or "8"
|
|
- local suffix = package:debug() and "d" or ""
|
|
|
|
|
|
+ local suffix = ""
|
|
|
|
+ if package:is_plat("windows") and package:debug() then
|
|
|
|
+ suffix = "d"
|
|
|
|
+ end
|
|
if package:version():ge("10.39") and package:is_plat("windows") and not package:config("shared") then
|
|
if package:version():ge("10.39") and package:is_plat("windows") and not package:config("shared") then
|
|
package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
|
|
package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
|
|
else
|
|
else
|