improve abseil link order (#2948)

* improve abseil link order

* Update xmake.lua

* Update xmake.lua
pull/2949/head
xpxz 12 months ago committed by GitHub
parent 28c0e27120
commit 305159e045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      packages/a/abseil/xmake.lua

@ -21,12 +21,16 @@ package("abseil")
add_linkorders("absl_str_format_internal", "absl_base") add_linkorders("absl_str_format_internal", "absl_base")
add_linkorders("absl_flags", "absl_base") add_linkorders("absl_flags", "absl_base")
add_linkorders("absl_synchronization", "absl_base") add_linkorders("absl_synchronization", "absl_base")
add_linkorders("absl_hash", "absl_base") add_linkorders("absl_hash", "absl_city")
add_linkorders("absl_city", "absl_base")
add_linkorders("absl_time", "absl_base") add_linkorders("absl_time", "absl_base")
add_linkorders("absl_strings", "absl_raw_logging_internal") add_linkorders("absl_strings", "absl_raw_logging_internal")
add_linkorders("absl_strings_internal", "absl_raw_logging_internal") add_linkorders("absl_strings_internal", "absl_raw_logging_internal")
add_linkorders("absl_str_format_internal", "absl_raw_logging_internal") add_linkorders("absl_str_format_internal", "absl_raw_logging_internal")
add_linkorders("absl_str_format_internal", "absl_strings")
add_linkorders("absl_base", "absl_time")
add_linkorders("absl_kernel_timeout_internal", "absl_time")
add_linkorders("absl_synchronization", "absl_stacktrace")
add_linkorders("absl_time", "absl_time_zone")
if is_plat("macosx") then if is_plat("macosx") then
add_frameworks("CoreFoundation") add_frameworks("CoreFoundation")
@ -37,6 +41,9 @@ package("abseil")
package:add("defines", "ABSL_CONSUME_DLL") package:add("defines", "ABSL_CONSUME_DLL")
package:add("links", "abseil_dll") package:add("links", "abseil_dll")
end end
if package:version():eq("20230802.1") then
package:add("linkorders", "absl_synchronization", "absl_kernel_timeout_internal")
end
end) end)
on_install("macosx", "linux", "windows", "mingw", "cross", function (package) on_install("macosx", "linux", "windows", "mingw", "cross", function (package)

Loading…
Cancel
Save