From e99facd26eb7d310f1e225a9718b616d82150a73 Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Thu, 15 Jan 2026 18:33:53 +0800 Subject: [PATCH] set the visibility for libc_static and libc_static_noflto issue:https://gitcode.com/openharmony/third_party_FreeBSD/issues/201 Signed-off-by: xwx1135370 --- BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index b6e5789..c08c2b9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -111,6 +111,10 @@ freebsd_files = [ template("freebsd_libc_template") { __use_flto = invoker.freebsd_use_flto static_library(target_name) { + visibility = [ + ":*", + "//third_party/musl/*", + ] sources = [ "contrib/tcp_wrappers/strcasecmp.c", "lib/libc/gen/arc4random.c",