libabigail changed its static library dependency on libxml2 to a dynamic library dependency.

https://gitcode.com/openharmony/third_party_libabigail/issues/22

Signed-off-by: hosted <chenyadong18@huawei.com>
This commit is contained in:
hosted
2025-10-31 14:13:42 +08:00
parent 6f29ab5819
commit d85c7a46b4
4 changed files with 5 additions and 12 deletions
+1 -2
View File
@@ -23,8 +23,7 @@
"ram": "",
"deps": {
"components": [
"elfutils",
"libxml2"
"elfutils"
],
"third_party": []
},
-9
View File
@@ -233,12 +233,6 @@
/* Version number of package */
#define VERSION "2.4"
/* Defined if user enabled BTF usage */
/* #define WITH_BTF 1*/
/* struct btf_enum64 is present */
/* #define WITH_BTF_ENUM64 1 */
/* The BTF_KIND_DECL_TAG enumerator is present */
/* #undef WITH_BTF_KIND_DECL_TAG */
@@ -251,9 +245,6 @@
/* The function btf__type_cnt is present */
#define WITH_BTF__TYPE_CNT 1
/* Defined if user enables and system has the libctf library */
/* #define WITH_CTF 1*/
/* compile the deb package support in abipkgdiff */
#define WITH_DEB 1
+2 -1
View File
@@ -48,12 +48,13 @@ ohos_static_library("libabigail_static") {
"//third_party/libabigail",
"//third_party/libabigail/include",
"//third_party/libabigail/src",
"/usr/include/libxml2"
]
external_deps = [
"elfutils:libdw_static",
"libxml2:static_libxml2",
]
ldflags = [ "-lxml2" ]
defines = [ "ABIGAIL_ROOT_SYSTEM_LIBDIR=\"lib\"" ]
+2
View File
@@ -26,6 +26,7 @@ ohos_executable("abidiff") {
deps = [ "//third_party/libabigail/src:libabigail_static" ]
external_deps = [ "elfutils:libdw_static" ]
ldflags = [ "-lxml2" ]
install_enable = false
subsystem_name = "thirdparty"
part_name = "libabigail"
@@ -45,6 +46,7 @@ ohos_executable("abidw") {
deps = [ "//third_party/libabigail/src:libabigail_static" ]
external_deps = [ "elfutils:libdw_static" ]
ldflags = [ "-lxml2" ]
install_enable = false
subsystem_name = "thirdparty"
part_name = "libabigail"