Skip to content

Commit

Permalink
update gcc.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
KkemChen committed Sep 18, 2024
1 parent d74dcf9 commit eec1d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/core/tools/gcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit eec1d90

Please sign in to comment.