summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKkemChen <[email protected]>2024-09-18 19:48:18 +0800
committerKkemChen <[email protected]>2024-09-18 19:48:18 +0800
commiteec1d907ee7f667b924d72231c7fc8fec4b6e439 (patch)
tree8a397b193e441979cb54af6529abc6e1b1407346
parentd74dcf983f098440287e1b42f7bba1830b66e6f9 (diff)
update gcc.lua
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 9f31c11be..668e279ee 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -368,7 +368,7 @@ function nf_linkgroup(self, linkgroup, opt)
table.insert(prefix_flags, "-Wl,-Bstatic")
table.insert(suffix_flags, 1, "-Wl,-Bdynamic")
end
- if as_needed then
+ if not as_needed then
-- https://github.com/xmake-io/xmake/issues/5621
table.insert(prefix_flags, "-Wl,--no-as-needed")
table.insert(suffix_flags, 1, "-Wl,--as-needed")