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

!76 Musl在L2上支持backtrace功能

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