diff options
| author | KkemChen <[email protected]> | 2024-09-18 19:48:18 +0800 |
|---|---|---|
| committer | KkemChen <[email protected]> | 2024-09-18 19:48:18 +0800 |
| commit | eec1d907ee7f667b924d72231c7fc8fec4b6e439 (patch) | |
| tree | 8a397b193e441979cb54af6529abc6e1b1407346 /xmake/modules | |
| parent | d74dcf983f098440287e1b42f7bba1830b66e6f9 (diff) | |
update gcc.lua
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
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") |
