summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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