From d6c410f19de5947de40ce110c1e768c887870072 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Wed, 8 Mar 2023 14:20:02 -0800 Subject: [PATCH] Turn off --exclude-libs,ALL so that libupdater.a symbols can be public --- build/config/compiler/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 4c9a1ee2b5..71c18e6bad 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -393,7 +393,10 @@ config("compiler") { ldflags += [ "-Wl,--no-undefined", - "-Wl,--exclude-libs,ALL", + + # TODO: Terrible hack, but otherwise libupdater.a symbols can't + # be exported from libflutter.so, even when added to android_exports.lst. + # "-Wl,--exclude-libs,ALL", "-fuse-ld=lld", # Enable identical code folding to reduce size.