From dc88565fbc307ae231c93b7f5873e06a076d03a7 Mon Sep 17 00:00:00 2001 From: chensiming <1067037310@qq.com> Date: Thu, 21 Oct 2021 11:17:48 +0800 Subject: [PATCH] Signed-off-by:chensiming Signed-off-by: chensiming <1067037310@qq.com> --- build_lite/BUILD.gn | 1 + startup_lite/bootstrap_posix/BUILD.gn | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build_lite/BUILD.gn b/build_lite/BUILD.gn index 02d9254e4..2a9c6f7cf 100644 --- a/build_lite/BUILD.gn +++ b/build_lite/BUILD.gn @@ -78,6 +78,7 @@ lite_component("acts_component") { all_features += [ "//test/xts/acts/utils_lite/kv_store_posix:ActsKvStoreTest", "//test/xts/acts/startup_lite/syspara_posix:ActsParameterTest", + "//test/xts/acts/startup_lite/bootstrap_posix:ActsBootstrapTest", "//test/xts/acts/security_lite/datahuks_posix:ActsSecurityDataTest", #"//test/xts/acts/multimedia_lite/camera_lite_posix/camera_native:ActsMediaCameraTest", #"//test/xts/acts/multimedia_lite/media_lite_posix/player_native:ActsMediaPlayerTest", diff --git a/startup_lite/bootstrap_posix/BUILD.gn b/startup_lite/bootstrap_posix/BUILD.gn index fcb107373..317f26811 100755 --- a/startup_lite/bootstrap_posix/BUILD.gn +++ b/startup_lite/bootstrap_posix/BUILD.gn @@ -26,10 +26,15 @@ hcpptest_suite("ActsBootstrapTest") { "//third_party/bounds_checking_function/include/", "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", ] - cflags = [ "-Wno-error" ] - + deps = [ "//foundation/distributedschedule/samgr_lite/samgr:samgr", "//third_party/bounds_checking_function:libsec_shared", ] + cflags = [ "-Wno-error" ] + ldflags = [ + "-lstdc++", + "-lm", + "-lpthread", + ] } -- GitLab