From 0e98f0cae464047679c7e9917c43a9a93f164dcb Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Wed, 10 Aug 2022 00:06:19 +0800 Subject: [PATCH] Disable static linkage of es2abc under certain circumstance Issue:I5LIX8 Signed-off-by: ctw-ian Change-Id: I9c7f5999e1a9c5887713219346e9f970dc01cac8 --- es2panda/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index f153f1008b..98c95e92bf 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -424,6 +424,11 @@ ohos_executable("es2panda") { static_link = true } + if (!use_musl) { + static_link = false + ldflags += [ "-lc++" ] + } + if (enable_bytecode_optimizer) { deps += [ "$ark_root/bytecode_optimizer:libarkbytecodeopt_frontend_static", -- Gitee