Bug 1139036 - Bind all symbols from libmozglue.dylib when it is loaded. r=ted

This commit is contained in:
Mike Hommey 2015-03-04 21:11:32 +09:00
Родитель 3ee2444840
Коммит 59c586c336
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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']