mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1194834: Don't use static libs on Windows ASan builds. r=glandium
This commit is contained in:
parent
edb0027da6
commit
2e0f44f809
@ -25,7 +25,7 @@ def GeckoBinary(linkage='dependent', msvcrt='dynamic', mozglue=None):
|
||||
'program' (mozglue linked to an executable program), or 'library' (mozglue
|
||||
linked to a shared library).
|
||||
'''
|
||||
if msvcrt == 'dynamic' or CONFIG['OS_ARCH'] != 'WINNT':
|
||||
if msvcrt == 'dynamic' or CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['MOZ_ASAN']:
|
||||
xpcomglue = 'xpcomglue'
|
||||
elif msvcrt == 'static':
|
||||
USE_STATIC_LIBS = True
|
||||
|
@ -381,6 +381,12 @@ ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
||||
#// DLL version of the RTL is used...
|
||||
#//
|
||||
#//------------------------------------------------------------------------
|
||||
ifdef MOZ_ASAN
|
||||
# ASAN-instrumented code tries to link against the dynamic CRT, which can't be
|
||||
# used in the same link as the static CRT.
|
||||
USE_STATIC_LIBS=
|
||||
endif # MOZ_ASAN
|
||||
|
||||
ifdef USE_STATIC_LIBS
|
||||
RTL_FLAGS=-MT # Statically linked multithreaded RTL
|
||||
ifdef MOZ_DEBUG
|
||||
|
@ -17,7 +17,7 @@ else:
|
||||
kwargs = {
|
||||
'linkage': None,
|
||||
}
|
||||
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
||||
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['MOZ_ASAN']:
|
||||
kwargs['msvcrt'] = 'static'
|
||||
if not CONFIG['GNU_CC']:
|
||||
USE_LIBS += [
|
||||
@ -55,6 +55,14 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
||||
]
|
||||
USE_LIBS += [
|
||||
'rlz',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ASAN']:
|
||||
USE_LIBS += [
|
||||
'sandbox_s',
|
||||
]
|
||||
else:
|
||||
USE_LIBS += [
|
||||
'sandbox_staticruntime_s',
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user