summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/tools')
-rw-r--r--xmake/scripts/tools/gcc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua
index f1b2f4d55..ab5e94ccb 100644
--- a/xmake/scripts/tools/gcc.lua
+++ b/xmake/scripts/tools/gcc.lua
@@ -76,6 +76,10 @@ function gcc.init(self, name)
self.shflags = { "-shared", "-fPIC" }
end
+ -- init cxflags for the kind: shared
+ self.shared = {}
+ self.shared.cxflags = {"-fPIC"}
+
-- suppress warning for the clang
local isclang = false
if name:find("clang") then