From 55ee77673a21e8b5f164d0c1ef529b983274e540 Mon Sep 17 00:00:00 2001 From: chenmudan Date: Fri, 17 Mar 2023 22:06:22 +0800 Subject: [PATCH] fix shared link to libc++.so issue: Signed-off-by: chenmudan Change-Id: I16434cf4135b56254d483c1d044578805fd9ba58 --- es2panda/BUILD.gn | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 10029782aa..7f64b639b9 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -439,16 +439,14 @@ ohos_executable("es2panda") { ldflags = [] if (is_linux) { if (build_public_version) { - ldflags += [ "-static-libstdc++" ] + ldflags += [ "-Wl,-Bstatic" ] + ldflags += [ "-lstdc++" ] + ldflags += [ "-Wl,-Bdynamic" ] } else { libs = [ libcpp_static_lib ] } } - if (!use_musl) { - ldflags += [ "-lc++" ] - } - output_name = "es2abc" install_enable = false part_name = "ets_frontend" -- Gitee