From 30d5754c99a16e8a14f0eba37d648ae2f89755a3 Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Wed, 10 Aug 2022 00:13:19 +0800 Subject: [PATCH] Disable static linkage of es2abc under certain circumstance Issue:I5LIXE Signed-off-by: ctw-ian Change-Id: If1829d2918bf27eeddabe94ef9fc4f6f6d60d0a6 --- es2panda/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index f153f1008b5..98c95e92bfa 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