зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1375859 - Build zlib in libmozglue when the linker in enabled. r=mshal
The linker uses zlib. The linker is in mozglue, zlib is in libxul by default. As a consequence, we made --with-system-zlib a requirement for builds enabling the linker. In the meanwhile, we added an option that makes zlib built in mozglue for different needs, which, in fact, also allows to do that when the linker is enabled. So, allow to build without system zlib when the linker is enabled. --HG-- extra : rebase_source : 873a87b17b306fc392018049e01cf794b63a6206
This commit is contained in:
Родитель
8022e9e91e
Коммит
df3ab76c5a
|
@ -14,7 +14,10 @@ USE_LIBS += [
|
||||||
'linker',
|
'linker',
|
||||||
'mfbt',
|
'mfbt',
|
||||||
]
|
]
|
||||||
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
|
if CONFIG['ZLIB_IN_MOZGLUE']:
|
||||||
|
USE_LIBS += [ 'modules_zlib_src' ]
|
||||||
|
else:
|
||||||
|
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
|
||||||
DISABLE_STL_WRAPPING = True
|
DISABLE_STL_WRAPPING = True
|
||||||
|
|
||||||
PYTHON_UNITTEST_MANIFESTS += ['python.ini']
|
PYTHON_UNITTEST_MANIFESTS += ['python.ini']
|
||||||
|
|
|
@ -2035,10 +2035,6 @@ dnl system ZLIB support
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
MOZ_ZLIB_CHECK([1.2.3])
|
MOZ_ZLIB_CHECK([1.2.3])
|
||||||
|
|
||||||
if test "$MOZ_LINKER" = 1 -a "$MOZ_SYSTEM_ZLIB" != 1; then
|
|
||||||
AC_MSG_ERROR([Custom dynamic linker requires --with-system-zlib])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
||||||
dnl system BZIP2 Support
|
dnl system BZIP2 Support
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
|
@ -4557,7 +4553,7 @@ dnl ========================================================
|
||||||
MOZ_ARG_HEADER(Static build options)
|
MOZ_ARG_HEADER(Static build options)
|
||||||
|
|
||||||
if test -z "$MOZ_SYSTEM_ZLIB"; then
|
if test -z "$MOZ_SYSTEM_ZLIB"; then
|
||||||
if test -n "$JS_SHARED_LIBRARY"; then
|
if test -n "$JS_SHARED_LIBRARY" -o -n "$MOZ_LINKER"; then
|
||||||
ZLIB_IN_MOZGLUE=1
|
ZLIB_IN_MOZGLUE=1
|
||||||
AC_DEFINE(ZLIB_IN_MOZGLUE)
|
AC_DEFINE(ZLIB_IN_MOZGLUE)
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче