diff options
| -rw-r--r-- | xmake/core/package/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 934958ec4..52cdc2063 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -422,7 +422,7 @@ function _instance:envs() local envs = self._ENVS if not envs then envs = {} - if self:kind() == "binary" then + if self:kind() == "binary" or (self:is_plat("windows", "mingw") and self:config("shared")) then envs.PATH = {"bin"} end -- add LD_LIBRARY_PATH to load *.so directory |
