From adbcc87f0699702c32fa8dc63aa8aafaa1deca9d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Apr 2019 22:18:36 +0800 Subject: improve linker --- 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 d21cbe99f..c9dd32508 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -45,7 +45,7 @@ function init(self) -- add -fPIC for shared if not is_plat("windows", "mingw") then - self:add("gcc.shflags", "-fPIC") -- only for gcc + self:add("shflags", "-fPIC") self:add("shared.cxflags", "-fPIC") end -- cgit v1.3.1