mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1699 - Part 3c: mozjemalloc: FreeBSD: Ensure early initialization
This guarantees that initialization is done in a single-thread context.
This commit is contained in:
parent
b7e6f5fd45
commit
24391cb707
1 changed files with 5 additions and 0 deletions
|
|
@ -63,6 +63,11 @@ def GeckoBinary(linkage='dependent', msvcrt='dynamic', mozglue=None):
|
|||
LDFLAGS += ['-rdynamic']
|
||||
if CONFIG['MOZ_MEMORY']:
|
||||
USE_LIBS += ['memory']
|
||||
if CONFIG['OS_ARCH'] == 'FreeBSD':
|
||||
# Make sure this function is linked in, so that it is
|
||||
# executed at executable load (it has the 'constructor'
|
||||
# flag).
|
||||
LDFLAGS += ['-u', 'jemalloc_FreeBSD_init']
|
||||
elif mozglue == 'library':
|
||||
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
|
||||
if not CONFIG['MOZ_GLUE_IN_PROGRAM']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue