提交 9b9fbfb5 编写于 作者: D dhy308

Fix the BUILD.gn for libc-test build error.

Issue: I6A9R5
Test: libc-test pass
Signed-off-by: Ndhy308 <tony.gan@huawei.com>
上级 06a8b337
......@@ -17,47 +17,13 @@ group("ldso_cfi_test") {
testonly = true
deps = [
":ldso_cfi_check",
":ldso_cfi_test_exe",
":ldso_cfi_test_lib",
":ldso_cfi_test_bad_lib",
]
}
ohos_executable("ldso_cfi_check") {
# cflags = [
# "-fsanitize=cfi",
# "-fsanitize-trap=all",
# "-fno-sanitize-trap=cfi",
# "-flto",
# "-fvisibility=hidden"
# ]
# ldflags = [
# "-fsanitize=cfi",
# "-flto",
# "-fsanitize-trap=all",
# "-fno-sanitize-trap=cfi",
# ]
# cflags_c = ["--coverage"]
# ldflags = ["--coverage"]
subsystem_name = "musl"
part_name = "libc-test"
include_dirs = [
"../common",
"//third_party/musl/porting/linux/user/include",
"//third_party/musl/porting/linux/user/ldso",
"//third_party/musl/libc-test/src/common",
]
sources = [
"ldso_cfi_check.c",
]
configs = [ "//third_party/musl/libc-test/src/common:config_runtest" ]
}
ohos_executable("ldso_cfi_test_exe") {
#cflags = [ "-fPIE","-fvisibility=default" ]
#ldflags = [ "-pie","-fvisibility=default" ]
# cflags_c = ["--coverage"]
# ldflags = ["--coverage"]
subsystem_name = "musl"
part_name = "libc-test"
include_dirs = [
......@@ -67,29 +33,17 @@ ohos_executable("ldso_cfi_test_exe") {
"//third_party/musl/libc-test/src/common",
]
sources = [
"ldso_cfi_test_exe.c",
]
sources = [ "ldso_cfi_check.c" ]
configs = [ "//third_party/musl/libc-test/src/common:config_runtest" ]
}
ohos_shared_library("ldso_cfi_test_lib") {
include_dirs = [ "." ]
sources = [ "ldso_cfi_test_lib.c" ]
# cflags_c = ["--coverage"]
# ldflags = ["--coverage"]
output_name = "ldso_cfi_test_lib"
output_extension = "so"
subsystem_name = "musl"
part_name = "libc-test-lib"
}
ohos_shared_library("ldso_cfi_test_bad_lib") {
include_dirs = [ "." ]
sources = [ "ldso_cfi_test_bad_lib.c" ]
# cflags_c = ["--coverage"]
# ldflags = ["--coverage"]
output_name = "ldso_cfi_test_bad_lib"
# cflags_c = ["--coverage"]
# ldflags = ["--coverage"]
output_name = "ldso_cfi_test_lib"
output_extension = "so"
subsystem_name = "musl"
part_name = "libc-test-lib"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册