Skip to content

Commit

Permalink
Hide symbols in libunwind configuration used by Starboard
Browse files Browse the repository at this point in the history
Hide symbols in libunwind configuration used by Starboard to prevent conflicts
with symbols exported by the libgcc_s library.

b/299486087
  • Loading branch information
astolcenburg committed Feb 3, 2025
1 parent 2ec13fa commit 326a6df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions third_party/llvm-project/libunwind/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,19 @@ config("unwind_starboard_config") {
]
}

config("unwind_hide_symbols_config") {
cflags = [ "-fvisibility=hidden" ]

defines = [
"_LIBUNWIND_HIDE_SYMBOLS",
]
}

static_library("unwind_starboard") {
sources = common_sources

configs += [ ":unwind_starboard_config" ]
configs += [ ":unwind_hide_symbols_config" ]
all_dependent_configs = [ ":common_unwind_dependents_config" ]

public_deps = [
Expand Down

0 comments on commit 326a6df

Please sign in to comment.