summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-14 16:55:11 +0800
committerGitHub <[email protected]>2025-04-14 16:55:11 +0800
commit13144a729362ddcc4943db3aa5fc4a97e4b57905 (patch)
tree012c5f5f00fde35e488d73d1402651393070b6df
parent62251f56eb7700129cf61994c4db0f4ef25df649 (diff)
parent3bc4c74e03e7e3459167f4d5ba2726fe61a7cba2 (diff)
Merge pull request #6321 from Doekin/autoconf-ld
package(autoconf): De-duplicate `LDFLAGS`
-rw-r--r--xmake/modules/package/tools/autoconf.lua2
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