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:
Benjamin Smedberg 2013-09-30 16:09:28 -04:00
Родитель 48205ded50
Коммит e151d06091
3 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -24,6 +24,7 @@ if test "$OS_ARCH" = "WINNT"; then
fi fi
MOZ_CHROME_FILE_FORMAT=omni MOZ_CHROME_FILE_FORMAT=omni
MOZ_DISABLE_EXPORT_JS=1
MOZ_SAFE_BROWSING=1 MOZ_SAFE_BROWSING=1
MOZ_SERVICES_COMMON=1 MOZ_SERVICES_COMMON=1
MOZ_SERVICES_CRYPTO=1 MOZ_SERVICES_CRYPTO=1

Просмотреть файл

@ -9220,6 +9220,9 @@ if test "$BUILD_CTYPES"; then
fi fi
if test -z "$JS_SHARED_LIBRARY" ; then if test -z "$JS_SHARED_LIBRARY" ; then
ac_configure_args="$ac_configure_args --disable-shared-js" 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 fi
if test -z "$MOZ_NATIVE_NSPR"; then if test -z "$MOZ_NATIVE_NSPR"; then
ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'" 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=0,
DISABLE_SHARED_JS=1) 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 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 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 JS_SHARED_LIBRARY=1
fi fi
AC_SUBST(JS_SHARED_LIBRARY) AC_SUBST(JS_SHARED_LIBRARY)