diff options
| author | Doekin <[email protected]> | 2025-04-14 15:59:54 +0800 |
|---|---|---|
| committer | Doekin <[email protected]> | 2025-04-14 15:59:54 +0800 |
| commit | 3bc4c74e03e7e3459167f4d5ba2726fe61a7cba2 (patch) | |
| tree | 012c5f5f00fde35e488d73d1402651393070b6df | |
| parent | 62251f56eb7700129cf61994c4db0f4ef25df649 (diff) | |
package(autoconf): remove duplicate `LDFLAGS`
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 821ab759f..5a287045f 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -362,7 +362,7 @@ function buildenvs(package, opt) end if ldflags or shflags then -- autoconf does not use SHFLAGS - envs.LDFLAGS = table.concat(_translate_paths(table.join(ldflags or {}, shflags)), ' ') + envs.LDFLAGS = table.concat(table.reverse_unique(_translate_paths(table.join(ldflags or {}, shflags))), ' ') end -- cross-compilation? pass the full build environments |
