diff --git a/browser/installer/Makefile.in b/browser/installer/Makefile.in index aacce6a8f30..e0da2764a1a 100644 --- a/browser/installer/Makefile.in +++ b/browser/installer/Makefile.in @@ -92,6 +92,10 @@ ifneq (,$(filter aurora beta,$(MOZ_UPDATE_CHANNEL))) DEFINES += -DSHIP_FEEDBACK=1 endif +ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET))) +DEFINES += -DMOZ_SHARED_MOZGLUE=1 +endif + ifdef MOZ_PKG_MANIFEST_P MOZ_PKG_MANIFEST = package-manifest diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index 38c07ea9462..23021e39cdb 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -49,7 +49,9 @@ @BINPATH@/@DLL_PREFIX@xpcom@DLL_SUFFIX@ @BINPATH@/@DLL_PREFIX@nspr4@DLL_SUFFIX@ @BINPATH@/@DLL_PREFIX@mozalloc@DLL_SUFFIX@ +#ifdef MOZ_SHARED_MOZGLUE @BINPATH@/@DLL_PREFIX@mozglue@DLL_SUFFIX@ +#endif #ifdef XP_MACOSX @BINPATH@/XUL #else diff --git a/mozglue/build/Makefile.in b/mozglue/build/Makefile.in index c3436bbe772..07702ff470b 100644 --- a/mozglue/build/Makefile.in +++ b/mozglue/build/Makefile.in @@ -56,6 +56,7 @@ CPPSRCS = dummy.cpp endif # Build mozglue as a shared lib on Windows, OSX and Android. +# If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET))) FORCE_SHARED_LIB = 1 else