From 85dc110f9126b4662d56c2d96c9627532056a3ca Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 1 Mar 2023 00:42:31 +0800 Subject: improve has_flags --- xmake/modules/core/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/core/tools/gcc.lua') diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 0d33decb4..f6dd6f55b 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -74,7 +74,7 @@ function load(self) -- we need check it for clang/gcc with window target -- @see https://github.com/xmake-io/xmake/issues/1392 -- - if not self:is_plat("windows", "mingw") and self:has_flags("-fPIC", "cxflags") then + if not self:is_plat("windows", "mingw") and self:has_flags("-fPIC") then self:add("shflags", "-fPIC") self:add("shared.cxflags", "-fPIC") end -- cgit v1.3.1