summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 11087b77a..7636cad60 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -339,12 +339,9 @@ function buildenvs(package, opt)
if arflags then
envs.ARFLAGS = table.concat(_translate_paths(arflags), ' ')
end
- if ldflags then
- envs.LDFLAGS = table.concat(_translate_paths(ldflags), ' ')
- end
- if shflags then
+ if ldflags or shflags then
-- autoconf does not use SHFLAGS
- envs.LDFLAGS = table.concat(_translate_paths(shflags), ' ')
+ envs.LDFLAGS = table.concat(_translate_paths(table.join(ldflags or {}, shflags)), ' ')
end
-- cross-compilation? pass the full build environments