зеркало из https://github.com/mozilla/gecko-dev.git
Bug 920731 - stop exporting JS symbols from libxul in Firefox builds. r=glandium sr=bz
--HG-- extra : rebase_source : d3c73a8be14dea4156c53cc9f772178271f80e28
This commit is contained in:
Родитель
48205ded50
Коммит
e151d06091
|
@ -24,6 +24,7 @@ if test "$OS_ARCH" = "WINNT"; then
|
|||
fi
|
||||
|
||||
MOZ_CHROME_FILE_FORMAT=omni
|
||||
MOZ_DISABLE_EXPORT_JS=1
|
||||
MOZ_SAFE_BROWSING=1
|
||||
MOZ_SERVICES_COMMON=1
|
||||
MOZ_SERVICES_CRYPTO=1
|
||||
|
|
|
@ -9220,6 +9220,9 @@ if test "$BUILD_CTYPES"; then
|
|||
fi
|
||||
if test -z "$JS_SHARED_LIBRARY" ; then
|
||||
ac_configure_args="$ac_configure_args --disable-shared-js"
|
||||
if test -n "$MOZ_DISABLE_EXPORT_JS"; then
|
||||
ac_configure_args="$ac_configure_args --disable-export-js"
|
||||
fi
|
||||
fi
|
||||
if test -z "$MOZ_NATIVE_NSPR"; then
|
||||
ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'"
|
||||
|
|
|
@ -138,9 +138,22 @@ MOZ_ARG_ENABLE_BOOL(shared-js,
|
|||
DISABLE_SHARED_JS=0,
|
||||
DISABLE_SHARED_JS=1)
|
||||
|
||||
MOZ_ARG_DISABLE_BOOL(export-js,
|
||||
[ --disable-export-js
|
||||
Do not mark JS symbols as DLL exported/visible.],
|
||||
DISABLE_EXPORT_JS=1,
|
||||
DISABLE_SHARED_JS=)
|
||||
|
||||
if test "$DISABLE_SHARED_JS" = "1" ; then
|
||||
AC_DEFINE(STATIC_EXPORTABLE_JS_API)
|
||||
if test "$DISABLE_EXPORT_JS" = "1"; then
|
||||
AC_DEFINE(STATIC_JS_API)
|
||||
else
|
||||
AC_DEFINE(STATIC_EXPORTABLE_JS_API)
|
||||
fi
|
||||
else
|
||||
if test "$DISABLE_EXPORT_JS" = "1"; then
|
||||
AC_MSG_ERROR([Must export JS symbols when building a shared library.])
|
||||
fi
|
||||
JS_SHARED_LIBRARY=1
|
||||
fi
|
||||
AC_SUBST(JS_SHARED_LIBRARY)
|
||||
|
|
Загрузка…
Ссылка в новой задаче