提交 713e746b 编写于 作者: O openharmony_ci 提交者: Gitee

!76 Musl在L2上支持backtrace功能

Merge pull request !76 from dhy308/master
...@@ -129,7 +129,6 @@ template("musl_libs") { ...@@ -129,7 +129,6 @@ template("musl_libs") {
cflags_basic = [ cflags_basic = [
"--target=${musl_target_triple}", "--target=${musl_target_triple}",
"-march=armv7-a", "-march=armv7-a",
"-O2",
"-Wall", "-Wall",
"-D_FORTIFY_SOURCE=2", "-D_FORTIFY_SOURCE=2",
"-Wl,-z,relro,-z,now,-z,noexecstack", "-Wl,-z,relro,-z,now,-z,noexecstack",
...@@ -137,11 +136,11 @@ template("musl_libs") { ...@@ -137,11 +136,11 @@ template("musl_libs") {
cflags_auto = [ cflags_auto = [
"-D_XOPEN_SOURCE=700", "-D_XOPEN_SOURCE=700",
"-Os", "-g",
"-pipe", "-pipe",
"-fomit-frame-pointer", "-fno-omit-frame-pointer",
"-fno-unwind-tables", "-funwind-tables",
"-fno-asynchronous-unwind-tables", "-fasynchronous-unwind-tables",
"-ffunction-sections", "-ffunction-sections",
"-fdata-sections", "-fdata-sections",
"-Werror=implicit-function-declaration", "-Werror=implicit-function-declaration",
...@@ -365,11 +364,17 @@ template("musl_libs") { ...@@ -365,11 +364,17 @@ template("musl_libs") {
libclang_rt_path = rebase_path( libclang_rt_path = rebase_path(
"${runtime_lib_path}/${musl_target_triple}/${_libs_path_prefix}") "${runtime_lib_path}/${musl_target_triple}/${_libs_path_prefix}")
musl_lib_path = rebase_path("${target_out_dir}/${_libs_out_dir}")
ldflags = [ ldflags = [
"-nostdlib", "-nostdlib",
"-Wl,-e,_dlstart", "-Wl,-e,_dlstart",
"-L${libclang_rt_path}", "-L${libclang_rt_path}",
"-lclang_rt.builtins", "-lclang_rt.builtins",
"-lunwind",
"-L${musl_lib_path}",
"-ldl",
"-lpthread",
] ]
configs -= musl_inherited_configs configs -= musl_inherited_configs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册