Skip to content

Commit

Permalink
Change symbol visibility to hidden for modular builds (#1920)
Browse files Browse the repository at this point in the history
b/309646900

(cherry picked from commit f7aa084)
  • Loading branch information
niranjanyardi authored and kaidokert committed Jan 3, 2024
1 parent 2a1c927 commit 562aa0e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions starboard/linux/shared/platform_configuration/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,10 @@ config("compiler_flags") {

# Do not warn about unused function params.
"-Wno-unused-parameter",
]
if (sb_is_modular && !sb_is_evergreen) {
# If we're building with cobalt toolchain and native linker, we need visibility.
cflags += [ "-fvisibility=default" ]
} else {

# Default visibility to hidden, to enable dead stripping.
cflags += [ "-fvisibility=hidden" ]
}
"-fvisibility=hidden",
]

if (is_gold) {
cflags += [
Expand Down

0 comments on commit 562aa0e

Please sign in to comment.