diff options
| -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 6f96e2f8b..1e4416c48 100644 --- a/xmake/scripts/tools/gcc.lua +++ b/xmake/scripts/tools/gcc.lua @@ -107,8 +107,8 @@ function gcc.init(self, name) , ["-W3"] = "-Wall" -- strip - , ["-s"] = utils.ifelse(isclang, "-S", "-s") - , ["-S"] = "-S" + , ["-s"] = utils.ifelse(isclang, "-Wl,-S", "-s") + , ["-S"] = utils.ifelse(isclang, "-Wl,-S", "-S") -- others , ["-ftrapv"] = self._check |
