diff options
| author | ruki <[email protected]> | 2024-04-28 22:42:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-28 22:43:35 +0800 |
| commit | 8b8831f9ada63c5b81beec40619b67e5529dbfe4 (patch) | |
| tree | e3e8ac092055f21c76ef27836a12893e05e9e3a3 /xmake/modules/package/tools/autoconf.lua | |
| parent | 5f1a07e6f343a67ed53a30d302eea916fc069e91 (diff) | |
improve ldflags for autoconf
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 7 |
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 |
