Skip to content

Commit

Permalink
Bug 1139036 - Bind all symbols from libmozglue.dylib when it is loade…
Browse files Browse the repository at this point in the history
…d. r=ted
  • Loading branch information
glandium committed Mar 4, 2015
1 parent 3ee2444 commit 59c586c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mozglue/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,13 @@ LDFLAGS += CONFIG['MOZ_GLUE_WRAP_LDFLAGS']

if not CONFIG['_MSC_VER']:
FAIL_ON_WARNINGS = True

if CONFIG['OS_TARGET'] == 'Darwin':
# On OSX 10.10.3, a dead lock happens in some cases involving dynamic
# symbol resolution for symbols that jemalloc itself uses. While it
# might be possible to find a way to avoid all such symbol resolutions,
# it's currently not possible because at the very least there's a call
# to pthread_self from tsd_init_check_recursion, which is necessary
# because somehow clang doesn't want to accept the __thread keyword
# for TLS.
LDFLAGS += ['-Wl,-bind_at_load']

0 comments on commit 59c586c

Please sign in to comment.