diff --git a/BUILD.gn b/BUILD.gn index e658c77..4ebd078 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -103,7 +103,10 @@ if (defined(ohos_lite)) { deps += [ "//build/lite/config/component/cJSON:cjson_static", - "//third_party/bounds_checking_function:libsec_static", + ] + + external_deps = [ + "bounds_checking_function:libsec_shared", ] } } @@ -127,7 +130,7 @@ if (defined(ohos_lite)) { "./src/common_method.c", ] external_deps = [ - "bounds_checking_function:libsec_static", + "bounds_checking_function:libsec_shared", "cJSON:cjson_static", ] diff --git a/test/unittest/common/BUILD.gn b/test/unittest/common/BUILD.gn index ea89fb0..6f019a3 100644 --- a/test/unittest/common/BUILD.gn +++ b/test/unittest/common/BUILD.gn @@ -48,10 +48,13 @@ if (defined(ohos_lite)) { defines = [ "NAPI_TEST" ] deps = [ - "//build/lite/config/component/cJSON:cjson_static", "//test/testfwk/developer_test/third_party/lib/cpp:gtest_main", - "//third_party/bounds_checking_function:libsec_static", + "//build/lite/config/component/cJSON:cjson_static" ] + + external_deps = [ + "bounds_checking_function:libsec_shared", + ] } }