diff options
| author | Redbeanw44602 <[email protected]> | 2025-10-28 10:23:27 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-10-28 10:23:27 +0800 |
| commit | f8a12ff29d50270f8cd25a905d1832fec70cf87d (patch) | |
| tree | 92be95a8ee3eb4be7a1577ccc1ae23048658a94f /xmake/modules/package/tools/autoconf.lua | |
| parent | 14406f2d7e3c3047c50847537c35e42cbf451da9 (diff) | |
update.
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index d0e95f033..1f31cca40 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -296,7 +296,7 @@ function _apply_libtool_patch_for_cross(package, opt) if libtool_version then cprint("${dim}> checking for generated libtool version ... ${color.success} %s", libtool_version) else - wprint("warning: the generated libtool version cannot be detected, the patch for cross-compilation cannot be applied.") + wprint("generated libtool version cannot be detected, the patch for cross-compilation cannot be applied.") end end if libtool_version then @@ -305,6 +305,10 @@ function _apply_libtool_patch_for_cross(package, opt) return end + if not libtool_version:at("2.4.3", "2.6.0") then + return + end + -- load and parse patch list local patch_dir = path.join(os.programdir(), "scripts", "patches", "libtool") local loaded_patch_versions = {} @@ -329,7 +333,7 @@ function _apply_libtool_patch_for_cross(package, opt) end else if #loaded_patch_versions == 1 then - if libtool_version:satisfies(">=" .. patch_version:shortstr()) then + if libtool_version:ge(patch_version) then table.insert(suitable_patch_versions, patch_version) end end @@ -339,7 +343,7 @@ function _apply_libtool_patch_for_cross(package, opt) if #suitable_patch_versions == 0 then if option.get("verbose") then - wprint("warning: no suitable cross-compilation patch was found for libtool for this project.") + wprint("no suitable cross-compilation patch was found for libtool for this project.") end return end @@ -369,7 +373,7 @@ function _apply_libtool_patch_for_cross(package, opt) if succeed then cprint("${dim}> libtool patch for cross-compilation applied successfully") else - wprint("warning: unable to apply preset libtool cross-compilation patches, your project files were not modified.") + wprint("unable to apply preset libtool cross-compilation patches, your project files were not modified.") end end end |
