From eadc13fe844863d332591b23c62f4394cb7af12a Mon Sep 17 00:00:00 2001 From: Yuqiang Xian Date: Fri, 10 Feb 2023 10:12:38 +0800 Subject: [PATCH 1/2] Adapt to libsec dependency change in ets_runtime Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I6E503 Signed-off-by: Yuqiang Xian --- .../bounds_checking_function/BUILD.gn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build/third_party_gn/bounds_checking_function/BUILD.gn b/build/third_party_gn/bounds_checking_function/BUILD.gn index f06955f6..d5095ede 100644 --- a/build/third_party_gn/bounds_checking_function/BUILD.gn +++ b/build/third_party_gn/bounds_checking_function/BUILD.gn @@ -18,6 +18,20 @@ config("libsec_public_config") { include_dirs = [ "//third_party/bounds_checking_function/include" ] } +ohos_shared_library("libsec_shared") { + sources = libsec_sources + public_configs = [ ":libsec_public_config" ] + cflags = [ + "-D_INC_STRING_S", + "-D_INC_WCHAR_S", + "-D_SECIMP=//", + "-D_STDIO_S_DEFINED", + "-D_INC_STDIO_S", + "-D_INC_STDLIB_S", + "-D_INC_MEMORY_S", + ] +} + ohos_static_library("libsec_static") { sources = libsec_sources public_configs = [ ":libsec_public_config" ] -- Gitee From 6ff7d18881ff388ada6dd20e6fe9226e873e0455 Mon Sep 17 00:00:00 2001 From: Yuqiang Xian Date: Fri, 10 Feb 2023 10:42:24 +0800 Subject: [PATCH 2/2] Add part and subsystem name according to suggestions from OHOS build system. Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I6E503 Signed-off-by: Yuqiang Xian --- build/third_party_gn/bounds_checking_function/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/third_party_gn/bounds_checking_function/BUILD.gn b/build/third_party_gn/bounds_checking_function/BUILD.gn index d5095ede..6579aa22 100644 --- a/build/third_party_gn/bounds_checking_function/BUILD.gn +++ b/build/third_party_gn/bounds_checking_function/BUILD.gn @@ -30,6 +30,8 @@ ohos_shared_library("libsec_shared") { "-D_INC_STDLIB_S", "-D_INC_MEMORY_S", ] + part_name = "bounds_checking_function" + subsystem_name = "thirdparty" } ohos_static_library("libsec_static") { -- Gitee