diff --git a/BUILD.gn b/BUILD.gn index 00b2b7d3feb5a4c8649058b7de14fe8cea970b51..9c518201706903ff49dde28a976ca3d24314b6d6 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -9,6 +9,7 @@ exec_script("install.sh", [ "$glib_path" ]) PCRE2_LIB_DIR = "//third_party/pcre2/pcre2" ohos_shared_library("glibpcre") { + branch_protector_ret = "pac_ret" md5_check_script = rebase_path("$PCRE2_LIB_DIR/check_md5.sh") _arguments_config = [ rebase_path("$PCRE2_LIB_DIR/src/config.h.generic"), @@ -151,6 +152,7 @@ config("glib_config") { } ohos_source_set("glib_source") { + branch_protector_ret = "pac_ret" sources = [ "glib/deprecated/gallocator.c", "glib/deprecated/gcache.c", @@ -258,6 +260,7 @@ config("public_header_config") { } ohos_shared_library("glib") { + branch_protector_ret = "pac_ret" deps = [ ":glib_source", "//third_party/glib:glibpcre", @@ -365,6 +368,7 @@ config("g_mem_dfx_config") { } ohos_shared_library("g_mem_dfx") { + branch_protector_ret = "pac_ret" sources = [ "glibmemdfx/gmemdfx.cpp" ] include_dirs = [ "//commonlibrary/c_utils/base/include" ]