From 3bc4c74e03e7e3459167f4d5ba2726fe61a7cba2 Mon Sep 17 00:00:00 2001 From: Doekin Date: Mon, 14 Apr 2025 15:59:54 +0800 Subject: package(autoconf): remove duplicate `LDFLAGS` --- xmake/modules/package/tools/autoconf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1