diff options
| author | ruki <[email protected]> | 2015-06-23 09:47:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-23 09:47:37 +0800 |
| commit | a49bed2da5116dde09989a91fc04e9c37fb11740 (patch) | |
| tree | cfc91562f0321ebef77851df9444e810e312ff8c /xmake/scripts/tools/gcc.lua | |
| parent | 6faa822ae876cd75a0ad936e9af863f559e9d8e8 (diff) | |
modify shared library template
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
| -rw-r--r-- | xmake/scripts/tools/gcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua index d02384494..164dfae12 100644 --- a/xmake/scripts/tools/gcc.lua +++ b/xmake/scripts/tools/gcc.lua @@ -71,9 +71,9 @@ function gcc.init(self, name) -- init shflags if name:find("clang") then - self.shflags = { "-dynamiclib" } + self.shflags = { "-dynamiclib", "-fPIC" } else - self.shflags = { "-shared -Wl,-soname" } + self.shflags = { "-shared -Wl,-soname", "-fPIC" } end -- suppress warning for the clang |
