mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
configure: Support delayload on llvm-mingw.
This commit is contained in:
parent
a76dd884fa
commit
47b539699d
@ -2076,6 +2076,7 @@ ia64*-hpux*)
|
|||||||
# Silence problematic clang warnings
|
# Silence problematic clang warnings
|
||||||
CXXFLAGS="$CXXFLAGS -Wno-incompatible-ms-struct"
|
CXXFLAGS="$CXXFLAGS -Wno-incompatible-ms-struct"
|
||||||
LDFLAGS="$LDFLAGS -Wl,-Xlink=-filealign:0x1000"
|
LDFLAGS="$LDFLAGS -Wl,-Xlink=-filealign:0x1000"
|
||||||
|
MOZ_DELAYLOAD_FLAG="-Wl,-Xlink=-DELAYLOAD:"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$MOZ_PDB"; then
|
if test -n "$MOZ_PDB"; then
|
||||||
@ -2261,6 +2262,7 @@ ia64*-hpux*)
|
|||||||
dnl allow AVX2 code from VS2012
|
dnl allow AVX2 code from VS2012
|
||||||
HAVE_X86_AVX2=1
|
HAVE_X86_AVX2=1
|
||||||
MOZ_MEMORY=1
|
MOZ_MEMORY=1
|
||||||
|
MOZ_DELAYLOAD_FLAG="-DELAYLOAD:"
|
||||||
fi
|
fi
|
||||||
AC_DEFINE(HAVE_SNPRINTF)
|
AC_DEFINE(HAVE_SNPRINTF)
|
||||||
AC_DEFINE(_WINDOWS)
|
AC_DEFINE(_WINDOWS)
|
||||||
@ -2270,6 +2272,7 @@ ia64*-hpux*)
|
|||||||
AC_DEFINE(HW_THREADS)
|
AC_DEFINE(HW_THREADS)
|
||||||
AC_DEFINE(STDC_HEADERS)
|
AC_DEFINE(STDC_HEADERS)
|
||||||
AC_DEFINE(WIN32_LEAN_AND_MEAN)
|
AC_DEFINE(WIN32_LEAN_AND_MEAN)
|
||||||
|
AC_SUBST(MOZ_DELAYLOAD_FLAG)
|
||||||
dnl See http://support.microsoft.com/kb/143208 to use STL
|
dnl See http://support.microsoft.com/kb/143208 to use STL
|
||||||
AC_DEFINE(NOMINMAX)
|
AC_DEFINE(NOMINMAX)
|
||||||
_PLATFORM_DEFAULT_TOOLKIT='cairo-windows'
|
_PLATFORM_DEFAULT_TOOLKIT='cairo-windows'
|
||||||
|
@ -743,10 +743,9 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||||||
if v in context and context[v]:
|
if v in context and context[v]:
|
||||||
passthru.variables[v] = context[v]
|
passthru.variables[v] = context[v]
|
||||||
|
|
||||||
if context.config.substs.get('OS_TARGET') == 'WINNT' and \
|
if context.config.substs.get('MOZ_DELAYLOAD_FLAG'):
|
||||||
context['DELAYLOAD_DLLS']:
|
context['LDFLAGS'].extend([(context.config.substs.get('MOZ_DELAYLOAD_FLAG') + dll)
|
||||||
context['LDFLAGS'].extend([('-DELAYLOAD:%s' % dll)
|
for dll in context['DELAYLOAD_DLLS']])
|
||||||
for dll in context['DELAYLOAD_DLLS']])
|
|
||||||
context['OS_LIBS'].append('delayimp')
|
context['OS_LIBS'].append('delayimp')
|
||||||
|
|
||||||
for v in ['CFLAGS', 'CXXFLAGS', 'CMFLAGS', 'CMMFLAGS', 'ASFLAGS',
|
for v in ['CFLAGS', 'CXXFLAGS', 'CMFLAGS', 'CMMFLAGS', 'ASFLAGS',
|
||||||
|
Loading…
Reference in New Issue
Block a user