summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-25 11:20:45 +0800
committerruki <[email protected]>2015-12-25 11:20:45 +0800
commit3ab31ee7ce09cfb58a3058fb7653991618b2e895 (patch)
tree3a30d33d9047fc31478e1e675782c1cc18d447f0 /xmake/scripts/tools/gcc.lua
parent757741ef501c2160d08b33dbdfa50ed59a6b7b6a (diff)
fix compile error for share library
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
-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