Bug xxxxxx - Move LIBRARY_NAME to moz-build for comm-central
authorBrian O'Keefe <bokeefe@alum.wpi.edu>
Fri, 19 Jul 2013 09:49:51 -0400
changeset 18322 1f930505be17e0f4ec4733d403d1a6706283331d
parent 18319 89bbcd5a2293ae0338d1248b71b49338bece2bdc
child 18323 77a8992215475a12fe2aa29fb85ce92df70767b6
push id873
push userbokeefe@alum.wpi.edu
push dateFri, 19 Jul 2013 20:55:44 +0000
treeherdertry-comm-central@77a899221547 [default view] [failures only]
Bug xxxxxx - Move LIBRARY_NAME to moz-build for comm-central
calendar/base/backend/libical/Makefile.in
calendar/base/backend/libical/build/Makefile.in
calendar/base/backend/libical/build/moz.build
calendar/base/backend/libical/moz.build
calendar/libical/src/libical/Makefile.in
calendar/libical/src/libical/moz.build
db/mork/build/Makefile.in
db/mork/build/moz.build
db/mork/src/Makefile.in
db/mork/src/moz.build
ldap/xpcom/src/Makefile.in
ldap/xpcom/src/moz.build
mail/components/build/Makefile.in
mail/components/build/moz.build
mail/components/migration/src/Makefile.in
mail/components/migration/src/moz.build
mail/components/search/Makefile.in
mail/components/search/moz.build
mail/components/shell/Makefile.in
mail/components/shell/moz.build
mailnews/addrbook/src/Makefile.in
mailnews/addrbook/src/moz.build
mailnews/base/search/src/Makefile.in
mailnews/base/search/src/moz.build
mailnews/base/src/Makefile.in
mailnews/base/src/moz.build
mailnews/base/util/Makefile.in
mailnews/base/util/moz.build
mailnews/build/Makefile.in
mailnews/build/moz.build
mailnews/compose/src/Makefile.in
mailnews/compose/src/moz.build
mailnews/db/msgdb/src/Makefile.in
mailnews/db/msgdb/src/moz.build
mailnews/extensions/bayesian-spam-filter/src/Makefile.in
mailnews/extensions/bayesian-spam-filter/src/moz.build
mailnews/extensions/fts3/src/Makefile.in
mailnews/extensions/fts3/src/moz.build
mailnews/extensions/mailviews/src/Makefile.in
mailnews/extensions/mailviews/src/moz.build
mailnews/extensions/mdn/src/Makefile.in
mailnews/extensions/mdn/src/moz.build
mailnews/extensions/smime/build/Makefile.in
mailnews/extensions/smime/build/moz.build
mailnews/extensions/smime/src/Makefile.in
mailnews/extensions/smime/src/moz.build
mailnews/imap/src/Makefile.in
mailnews/imap/src/moz.build
mailnews/import/applemail/src/Makefile.in
mailnews/import/applemail/src/moz.build
mailnews/import/build/Makefile.in
mailnews/import/build/moz.build
mailnews/import/eudora/src/Makefile.in
mailnews/import/eudora/src/moz.build
mailnews/import/oexpress/Makefile.in
mailnews/import/oexpress/moz.build
mailnews/import/outlook/src/Makefile.in
mailnews/import/outlook/src/moz.build
mailnews/import/src/Makefile.in
mailnews/import/src/moz.build
mailnews/import/text/src/Makefile.in
mailnews/import/text/src/moz.build
mailnews/import/vcard/src/Makefile.in
mailnews/import/vcard/src/moz.build
mailnews/import/winlivemail/Makefile.in
mailnews/import/winlivemail/moz.build
mailnews/local/src/Makefile.in
mailnews/local/src/moz.build
mailnews/mapi/mapiDll/Makefile.in
mailnews/mapi/mapiDll/moz.build
mailnews/mapi/mapihook/build/Makefile.in
mailnews/mapi/mapihook/build/moz.build
mailnews/mapi/mapihook/src/Makefile.in
mailnews/mapi/mapihook/src/moz.build
mailnews/mime/cthandlers/glue/Makefile.in
mailnews/mime/cthandlers/glue/moz.build
mailnews/mime/cthandlers/pgpmime/Makefile.in
mailnews/mime/cthandlers/pgpmime/moz.build
mailnews/mime/cthandlers/vcard/Makefile.in
mailnews/mime/cthandlers/vcard/moz.build
mailnews/mime/emitters/Makefile.in
mailnews/mime/emitters/moz.build
mailnews/mime/src/Makefile.in
mailnews/mime/src/moz.build
mailnews/news/src/Makefile.in
mailnews/news/src/moz.build
suite/build/Makefile.in
suite/build/moz.build
suite/feeds/src/Makefile.in
suite/feeds/src/moz.build
suite/profile/Makefile.in
suite/profile/migration/src/Makefile.in
suite/profile/migration/src/moz.build
suite/profile/moz.build
suite/shell/src/Makefile.in
suite/shell/src/moz.build
--- a/calendar/base/backend/libical/Makefile.in
+++ b/calendar/base/backend/libical/Makefile.in
@@ -4,17 +4,16 @@
 
 DEPTH = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir = @srcdir@
 VPATH = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME     = calbase_s
 MODULE_NAME      = calBaseModule
 FORCE_STATIC_LIB = 1
 GRE_MODULE       = 1
 FORCE_USE_PIC   = 1 # Force use of PIC
 USE_STATIC_LIBS = 1
 NO_INTERFACES_MANIFEST = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/calendar/base/backend/libical/build/Makefile.in
+++ b/calendar/base/backend/libical/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH   = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH   = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = calbasecomps
 SHORT_LIBNAME = calbscmp
 IS_COMPONENT = 1
 MODULE_NAME = calBaseModule
 # We don't want an EXPORT_LIBRARY
 FORCE_SHARED_LIB = 1
 FORCE_USE_PIC   = 1 # Force use of PIC
 USE_STATIC_LIBS = 1
 NO_COMPONENTS_MANIFEST = 1
--- a/calendar/base/backend/libical/build/moz.build
+++ b/calendar/base/backend/libical/build/moz.build
@@ -5,8 +5,10 @@
 
 XPIDL_MODULE = 'caldatetime_libical'
 MODULE = 'calbasecomps'
 
 CPP_SOURCES += [
     'calBaseModule.cpp',
 ]
 
+LIBRARY_NAME = 'calbasecomps'
+
--- a/calendar/base/backend/libical/moz.build
+++ b/calendar/base/backend/libical/moz.build
@@ -20,8 +20,10 @@ CPP_SOURCES += [
     'calDuration.cpp',
     'calICSService.cpp',
     'calPeriod.cpp',
     'calRecurrenceRule.cpp',
     'calTimezone.cpp',
     'calUtils.cpp',
 ]
 
+LIBRARY_NAME = 'calbase_s'
+
--- a/calendar/libical/src/libical/Makefile.in
+++ b/calendar/libical/src/libical/Makefile.in
@@ -38,17 +38,16 @@
 DEPTH= @DEPTH@
 
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME     = mozical
 MODULE_NAME      = mozIcalModule
 FORCE_STATIC_LIB = 1
 FORCE_USE_PIC    = 1 # Force use of PIC
 USE_STATIC_LIBS  = 1
 
 DEFINES += -DHAVE_CONFIG_H
 
 ifneq (,$(filter BeOS Darwin OpenVMS NetBSD FreeBSD,$(OS_ARCH)))
--- a/calendar/libical/src/libical/moz.build
+++ b/calendar/libical/src/libical/moz.build
@@ -33,8 +33,10 @@ CSRCS += [
     'icaltimezone.c',
     'icaltypes.c',
     'icalvalue.c',
     'pvl.c',
     'sspm.c',
     'vsnprintf.c',
 ]
 
+LIBRARY_NAME = 'mozical'
+
--- a/db/mork/build/Makefile.in
+++ b/db/mork/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= mork
 EXPORT_LIBRARY = 1
 
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= nsMorkModule
 FORCE_SHARED_LIB = 1
 else
 MOZILLA_INTERNAL_API = 1
--- a/db/mork/build/moz.build
+++ b/db/mork/build/moz.build
@@ -9,8 +9,10 @@ EXPORTS += [
     'nsIMdbFactoryFactory.h',
     'nsMorkCID.h',
 ]
 
 CPP_SOURCES += [
     'nsMorkFactory.cpp',
 ]
 
+LIBRARY_NAME = 'mork'
+
--- a/db/mork/src/Makefile.in
+++ b/db/mork/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgmork_s
 FORCE_STATIC_LIB=1
 
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY	= 1
 endif
 
 include $(topsrcdir)/config/rules.mk
--- a/db/mork/src/moz.build
+++ b/db/mork/src/moz.build
@@ -48,8 +48,10 @@ CPP_SOURCES += [
     'morkYarn.cpp',
     'morkZone.cpp',
     'orkinHeap.cpp',
 ]
 
 if CONFIG['OS_ARCH'] == 'WINNT':
     CPP_SOURCES += ['morkSearchRowCursor.cpp']
 
+LIBRARY_NAME = 'msgmork_s'
+
--- a/ldap/xpcom/src/Makefile.in
+++ b/ldap/xpcom/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= mozldap
 EXPORT_LIBRARY	= 1
 
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= nsLDAPProtocolModule
 FORCE_SHARED_LIB = 1
 else
 MOZILLA_INTERNAL_API = 1
--- a/ldap/xpcom/src/moz.build
+++ b/ldap/xpcom/src/moz.build
@@ -23,8 +23,10 @@ CPP_SOURCES += [
 if CONFIG['MOZ_PREF_EXTENSIONS']:
     CPP_SOURCES += ['nsLDAPSyncQuery.cpp']
 
 EXTRA_COMPONENTS += [
     'ldapComponents.manifest',
     'nsLDAPProtocolHandler.js',
 ]
 
+LIBRARY_NAME = 'mozldap'
+
--- a/mail/components/build/Makefile.in
+++ b/mail/components/build/Makefile.in
@@ -7,17 +7,16 @@ topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 # NOTE: if we switch away from LIBXUL_LIBRARY at any stage
 # we need to clear the EMBED_MANIFEST_AT flag. (See Bug 714495)
 
-LIBRARY_NAME	= mailcomps
 SHORT_LIBNAME	= mailcmp
 EXPORT_LIBRARY	= 1
 LIBXUL_LIBRARY = 1
 MOZILLA_INTERNAL_API = 1
 FORCE_USE_PIC = 1
 
 ifeq ($(OS_ARCH),WINNT)
 OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
--- a/mail/components/build/moz.build
+++ b/mail/components/build/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'mailcomps'
 
 CPP_SOURCES += [
     'nsMailComps.cpp',
 ]
 
+LIBRARY_NAME = 'mailcomps'
+
--- a/mail/components/migration/src/Makefile.in
+++ b/mail/components/migration/src/Makefile.in
@@ -4,15 +4,14 @@
 
 DEPTH=@DEPTH@
 topsrcdir=@top_srcdir@
 srcdir=@srcdir@
 VPATH=@srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = profilemigration_s
 MODULE_NAME = nsMailProfileMigratorModule
 MOZILLA_INTERNAL_API = 1
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/mail/components/migration/src/moz.build
+++ b/mail/components/migration/src/moz.build
@@ -21,8 +21,10 @@ if CONFIG['OS_ARCH'] == 'WINNT':
     ]
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     CPP_SOURCES += [
         'nsEudoraProfileMigrator.cpp',
         'nsProfileMigratorBase.cpp',
     ]
 
+LIBRARY_NAME = 'profilemigration_s'
+
--- a/mail/components/search/Makefile.in
+++ b/mail/components/search/Makefile.in
@@ -18,17 +18,16 @@ EXTRA_PP_JS_MODULES = \
 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
 EXTRA_PP_JS_MODULES += \
   SpotlightIntegration.js \
   $(NULL)
 endif
 
 # If on Windows, build Windows Search integration
 ifneq (,$(filter windows, $(MOZ_WIDGET_TOOLKIT)))
-LIBRARY_NAME = winsearch_s
 MODULE_NAME = nsMailWinSearchHelperModule
 ifneq ($(MOZ_WIDGET_TOOLKIT), gtk2)
 MOZILLA_INTERNAL_API = 1
 endif
 
 # Windows Search component
 EXTRA_PP_JS_MODULES += \
   WinSearchIntegration.js \
--- a/mail/components/search/moz.build
+++ b/mail/components/search/moz.build
@@ -1,15 +1,16 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     DIRS += ['mdimporter']
 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+    LIBRARY_NAME = 'winsearch_s'
     DIRS += ['wsenable']
     CPP_SOURCES += ['nsMailWinSearchHelper.cpp']
 
 MODULE = 'mailwinsearch'
 
 DIRS += ['public']
 
--- a/mail/components/shell/Makefile.in
+++ b/mail/components/shell/Makefile.in
@@ -6,17 +6,16 @@ DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 DEFINES += -DMOZ_APP_NAME=\"$(MOZ_APP_NAME)\"
 
-LIBRARY_NAME = shellservice_s
 MODULE_NAME = nsMailShellModule
 MOZILLA_INTERNAL_API = 1
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
 
 CXXFLAGS += $(TK_CFLAGS)
--- a/mail/components/shell/moz.build
+++ b/mail/components/shell/moz.build
@@ -20,8 +20,10 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk2
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     CPP_SOURCES += ['nsMailMacIntegration.cpp']
 
 EXTRA_COMPONENTS += [
     'nsSetDefaultMail.js',
     'shell.manifest',
 ]
 
+LIBRARY_NAME = 'shellservice_s'
+
--- a/mailnews/addrbook/src/Makefile.in
+++ b/mailnews/addrbook/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= addrbook_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 ifeq ($(OS_ARCH),WINNT)
 OS_CXXFLAGS += -DNOMINMAX
 endif
--- a/mailnews/addrbook/src/moz.build
+++ b/mailnews/addrbook/src/moz.build
@@ -79,8 +79,10 @@ EXTRA_COMPONENTS += [
     'nsAbAutoCompleteSearch.js',
     'nsAbLDAPAttributeMap.js',
 ]
 
 EXTRA_PP_COMPONENTS += [
     'nsAddrbook.manifest',
 ]
 
+LIBRARY_NAME = 'addrbook_s'
+
--- a/mailnews/base/search/src/Makefile.in
+++ b/mailnews/base/search/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgsearch_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 EXPORT_DIR	= $(DIST)/bin/isp
 
 
 EXPORT_RESOURCE_FILES	= \
--- a/mailnews/base/search/src/moz.build
+++ b/mailnews/base/search/src/moz.build
@@ -21,8 +21,10 @@ CPP_SOURCES += [
     'nsMsgSearchValue.cpp',
 ]
 
 EXTRA_COMPONENTS += [
     'nsMsgTraitService.js',
     'nsMsgTraitService.manifest',
 ]
 
+LIBRARY_NAME = 'msgsearch_s'
+
--- a/mailnews/base/src/Makefile.in
+++ b/mailnews/base/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgbase_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 ifdef MOZ_LDAP_XPCOM
 DEFINES         += -DMOZ_LDAP_XPCOM
 endif
--- a/mailnews/base/src/moz.build
+++ b/mailnews/base/src/moz.build
@@ -74,8 +74,10 @@ EXTRA_COMPONENTS += [
     'newMailNotificationService.js',
     'nsMailNewsCommandLineHandler.js',
 ]
 
 EXTRA_JS_MODULES += [
     'virtualFolderWrapper.js',
 ]
 
+LIBRARY_NAME = 'msgbase_s'
+
--- a/mailnews/base/util/Makefile.in
+++ b/mailnews/base/util/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgbsutl_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB = 1
 
 DEFINES		+= -D_IMPL_NS_MSG_BASE
--- a/mailnews/base/util/moz.build
+++ b/mailnews/base/util/moz.build
@@ -61,8 +61,10 @@ EXTRA_JS_MODULES += [
     'jsTreeSelection.js',
     'mailServices.js',
     'mailnewsMigrator.js',
     'msgDBCacheManager.js',
     'templateUtils.js',
     'traceHelper.js',
 ]
 
+LIBRARY_NAME = 'msgbsutl_s'
+
--- a/mailnews/build/Makefile.in
+++ b/mailnews/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = mail
 EXPORT_LIBRARY = 1
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= nsMailModule
 FORCE_SHARED_LIB = 1
 else
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY	= 1
--- a/mailnews/build/moz.build
+++ b/mailnews/build/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'mail'
 
 CPP_SOURCES += [
     'nsMailModule.cpp',
 ]
 
+LIBRARY_NAME = 'mail'
+
--- a/mailnews/compose/src/Makefile.in
+++ b/mailnews/compose/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgcompose_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/mailnews/compose/src/moz.build
+++ b/mailnews/compose/src/moz.build
@@ -39,8 +39,10 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'coco
         'nsMsgAppleEncode.cpp',
     ]
 
 EXTRA_COMPONENTS += [
     'nsSMTPProtocolHandler.js',
     'nsSMTPProtocolHandler.manifest',
 ]
 
+LIBRARY_NAME = 'msgcompose_s'
+
--- a/mailnews/db/msgdb/src/Makefile.in
+++ b/mailnews/db/msgdb/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgdb_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/db/msgdb/src/moz.build
+++ b/mailnews/db/msgdb/src/moz.build
@@ -11,8 +11,10 @@ CPP_SOURCES += [
     'nsMailDatabase.cpp',
     'nsMsgDatabase.cpp',
     'nsMsgHdr.cpp',
     'nsMsgOfflineImapOperation.cpp',
     'nsMsgThread.cpp',
     'nsNewsDatabase.cpp',
 ]
 
+LIBRARY_NAME = 'msgdb_s'
+
--- a/mailnews/extensions/bayesian-spam-filter/src/Makefile.in
+++ b/mailnews/extensions/bayesian-spam-filter/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= bayesflt_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/extensions/bayesian-spam-filter/src/moz.build
+++ b/mailnews/extensions/bayesian-spam-filter/src/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'bayesflt'
 
 CPP_SOURCES += [
     'nsBayesianFilter.cpp',
 ]
 
+LIBRARY_NAME = 'bayesflt_s'
+
--- a/mailnews/extensions/fts3/src/Makefile.in
+++ b/mailnews/extensions/fts3/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir       = @top_srcdir@
 srcdir          = @srcdir@
 VPATH           = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= fts3tok_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 LOCAL_INCLUDES = \
 		$(SQLITE_CFLAGS)
--- a/mailnews/extensions/fts3/src/moz.build
+++ b/mailnews/extensions/fts3/src/moz.build
@@ -10,8 +10,10 @@ CSRCS += [
     'fts3_porter.c',
 ]
 
 CPP_SOURCES += [
     'nsFts3Tokenizer.cpp',
     'nsGlodaRankerFunction.cpp',
 ]
 
+LIBRARY_NAME = 'fts3tok_s'
+
--- a/mailnews/extensions/mailviews/src/Makefile.in
+++ b/mailnews/extensions/mailviews/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= mailview_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/extensions/mailviews/src/moz.build
+++ b/mailnews/extensions/mailviews/src/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'mailview'
 
 CPP_SOURCES += [
     'nsMsgMailViewList.cpp',
 ]
 
+LIBRARY_NAME = 'mailview_s'
+
--- a/mailnews/extensions/mdn/src/Makefile.in
+++ b/mailnews/extensions/mdn/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgmdn_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/extensions/mdn/src/moz.build
+++ b/mailnews/extensions/mdn/src/moz.build
@@ -9,8 +9,10 @@ CPP_SOURCES += [
     'nsMsgMdnGenerator.cpp',
 ]
 
 EXTRA_COMPONENTS += [
     'mdn-service.js',
     'mdn-service.manifest',
 ]
 
+LIBRARY_NAME = 'msgmdn_s'
+
--- a/mailnews/extensions/smime/build/Makefile.in
+++ b/mailnews/extensions/smime/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgsmime
 EXPORT_LIBRARY = 1
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= nsMsgSMIMEModule
 else
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
--- a/mailnews/extensions/smime/build/moz.build
+++ b/mailnews/extensions/smime/build/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'msgsmime'
 
 CPP_SOURCES += [
     'nsMsgSMIMEFactory.cpp',
 ]
 
+LIBRARY_NAME = 'msgsmime'
+
--- a/mailnews/extensions/smime/src/Makefile.in
+++ b/mailnews/extensions/smime/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgsmime_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/extensions/smime/src/moz.build
+++ b/mailnews/extensions/smime/src/moz.build
@@ -11,8 +11,10 @@ CPP_SOURCES += [
     'nsSMimeJSHelper.cpp',
 ]
 
 EXTRA_COMPONENTS += [
     'smime-service.js',
     'smime-service.manifest',
 ]
 
+LIBRARY_NAME = 'msgsmime_s'
+
--- a/mailnews/imap/src/Makefile.in
+++ b/mailnews/imap/src/Makefile.in
@@ -5,25 +5,21 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgimap_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
-
-include $(topsrcdir)/config/config.mk
-
 ifeq ($(OS_ARCH),WINNT)
 OS_CXXFLAGS += -DNOMINMAX
 endif
 
 # we don't want the shared lib, but we want to force the creation of a static lib.
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/mailnews/imap/src/moz.build
+++ b/mailnews/imap/src/moz.build
@@ -26,8 +26,10 @@ CPP_SOURCES += [
     'nsImapService.cpp',
     'nsImapStringBundle.cpp',
     'nsImapUndoTxn.cpp',
     'nsImapUrl.cpp',
     'nsImapUtils.cpp',
     'nsSyncRunnableHelpers.cpp',
 ]
 
+LIBRARY_NAME = 'msgimap_s'
+
--- a/mailnews/import/applemail/src/Makefile.in
+++ b/mailnews/import/applemail/src/Makefile.in
@@ -4,17 +4,16 @@
 
 DEPTH			= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH			= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= applmail_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/mailnews/import/applemail/src/moz.build
+++ b/mailnews/import/applemail/src/moz.build
@@ -8,8 +8,10 @@ MODULE = 'impapplemail'
 CPP_SOURCES += [
     'nsAppleMailImport.cpp',
 ]
 
 CMMSRCS += [
     'nsEmlxHelperUtils.mm',
 ]
 
+LIBRARY_NAME = 'applmail_s'
+
--- a/mailnews/import/build/Makefile.in
+++ b/mailnews/import/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = import
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= nsImportServiceModule
 FORCE_SHARED_LIB=1
 else
 EXPORT_LIBRARY = 1
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
--- a/mailnews/import/build/moz.build
+++ b/mailnews/import/build/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'import'
 
 CPP_SOURCES += [
     'nsImportModule.cpp',
 ]
 
+LIBRARY_NAME = 'import'
+
--- a/mailnews/import/eudora/src/Makefile.in
+++ b/mailnews/import/eudora/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = impEudra_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 ifeq ($(OS_ARCH),WINNT)
 OS_CXXFLAGS += -DNOMINMAX
--- a/mailnews/import/eudora/src/moz.build
+++ b/mailnews/import/eudora/src/moz.build
@@ -17,8 +17,10 @@ CPP_SOURCES += [
 ]
 
 if CONFIG['OS_ARCH'] == 'WINNT':
     CPP_SOURCES += ['nsEudoraWin32.cpp']
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     CPP_SOURCES += ['nsEudoraMac.cpp']
 
+LIBRARY_NAME = 'impEudra_s'
+
--- a/mailnews/import/oexpress/Makefile.in
+++ b/mailnews/import/oexpress/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = importOE_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB = 1
 
 ifeq ($(OS_ARCH),WINNT)
--- a/mailnews/import/oexpress/moz.build
+++ b/mailnews/import/oexpress/moz.build
@@ -12,8 +12,10 @@ CPP_SOURCES += [
     'nsOEImport.cpp',
     'nsOEMailbox.cpp',
     'nsOERegUtil.cpp',
     'nsOEScanBoxes.cpp',
     'nsOESettings.cpp',
     'nsOEStringBundle.cpp',
 ]
 
+LIBRARY_NAME = 'importOE_s'
+
--- a/mailnews/import/outlook/src/Makefile.in
+++ b/mailnews/import/outlook/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = impOutlk_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 LOCAL_INCLUDES += -I$(srcdir)/../../src
 
--- a/mailnews/import/outlook/src/moz.build
+++ b/mailnews/import/outlook/src/moz.build
@@ -13,8 +13,10 @@ CPP_SOURCES += [
     'nsOutlookImport.cpp',
     'nsOutlookMail.cpp',
     'nsOutlookSettings.cpp',
     'nsOutlookStringBundle.cpp',
     'rtfDecoder.cpp',
     'rtfMailDecoder.cpp',
 ]
 
+LIBRARY_NAME = 'impOutlk_s'
+
--- a/mailnews/import/src/Makefile.in
+++ b/mailnews/import/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = import_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 
 
--- a/mailnews/import/src/moz.build
+++ b/mailnews/import/src/moz.build
@@ -18,8 +18,10 @@ CPP_SOURCES += [
     'nsImportMailboxDescriptor.cpp',
     'nsImportMimeEncode.cpp',
     'nsImportScanFile.cpp',
     'nsImportService.cpp',
     'nsImportStringBundle.cpp',
     'nsImportTranslator.cpp',
 ]
 
+LIBRARY_NAME = 'import_s'
+
--- a/mailnews/import/text/src/Makefile.in
+++ b/mailnews/import/text/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = imptext_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 LOCAL_INCLUDES += -I$(srcdir)/../../src
 
 # we don't want the shared lib, but we want to force the creation of a static lib.
--- a/mailnews/import/text/src/moz.build
+++ b/mailnews/import/text/src/moz.build
@@ -5,8 +5,10 @@
 
 MODULE = 'impText'
 
 CPP_SOURCES += [
     'nsTextAddress.cpp',
     'nsTextImport.cpp',
 ]
 
+LIBRARY_NAME = 'imptext_s'
+
--- a/mailnews/import/vcard/src/Makefile.in
+++ b/mailnews/import/vcard/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = impvcard_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 REQUIRES	= xpcom \
 		  string \
 		  import \
--- a/mailnews/import/vcard/src/moz.build
+++ b/mailnews/import/vcard/src/moz.build
@@ -5,8 +5,10 @@
 
 MODULE = 'impvcard'
 
 CPP_SOURCES += [
     'nsVCardAddress.cpp',
     'nsVCardImport.cpp',
 ]
 
+LIBRARY_NAME = 'impvcard_s'
+
--- a/mailnews/import/winlivemail/Makefile.in
+++ b/mailnews/import/winlivemail/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH       =   @DEPTH@
 topsrcdir   =   @top_srcdir@
 srcdir      =   @srcdir@
 VPATH       =   @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   =        importWM_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB =      1
 
 include $(topsrcdir)/config/rules.mk
--- a/mailnews/import/winlivemail/moz.build
+++ b/mailnews/import/winlivemail/moz.build
@@ -7,8 +7,10 @@ MODULE = 'importWM'
 
 CPP_SOURCES += [
     'nsWMImport.cpp',
     'nsWMSettings.cpp',
     'nsWMStringBundle.cpp',
     'nsWMUtils.cpp',
 ]
 
+LIBRARY_NAME = 'importWM_s'
+
--- a/mailnews/local/src/Makefile.in
+++ b/mailnews/local/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msglocal_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 # we don't want the shared lib, but we want to force the creation of a static lib.
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/local/src/moz.build
+++ b/mailnews/local/src/moz.build
@@ -28,8 +28,11 @@ CPP_SOURCES += [
     'nsRssService.cpp',
 ]
 
 if CONFIG['MOZ_MOVEMAIL']:
     CPP_SOURCES += [
         'nsMovemailIncomingServer.cpp',
         'nsMovemailService.cpp',
     ]
+
+LIBRARY_NAME = 'msglocal_s'
+
--- a/mailnews/mapi/mapiDll/Makefile.in
+++ b/mailnews/mapi/mapiDll/Makefile.in
@@ -9,17 +9,16 @@ srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 # Statically link against the CRT, so that we don't go hunting around for it
 # and not find it when we're loaded into explorer.exe or similar
 USE_STATIC_LIBS = 1
 
-LIBRARY_NAME	= $(MODULE)
 DEFFILE		= $(win_srcdir)/Mapi32.def
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 endif
 
 
 OS_LIBS		+= ole32.lib
 
--- a/mailnews/mapi/mapiDll/moz.build
+++ b/mailnews/mapi/mapiDll/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'mozMapi32'
 
 CPP_SOURCES += [
     'MapiDll.cpp',
 ]
 
+LIBRARY_NAME = '$(MODULE)'
+
--- a/mailnews/mapi/mapihook/build/Makefile.in
+++ b/mailnews/mapi/mapihook/build/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= $(MODULE)
 DEFFILE		= $(win_srcdir)/MapiProxy.def
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 endif
 
 OS_LIBS		+= rpcrt4.lib
 
 MIDL_GENERATED_FILES = msgMapi.h msgMapi_p.c msgMapi_i.c dlldata.c
--- a/mailnews/mapi/mapihook/build/moz.build
+++ b/mailnews/mapi/mapihook/build/moz.build
@@ -10,8 +10,10 @@ EXPORTS += [
 ]
 
 CSRCS += [
     'dlldata.c',
     'msgMapi_i.c',
     'msgMapi_p.c',
 ]
 
+LIBRARY_NAME = '$(MODULE)'
+
--- a/mailnews/mapi/mapihook/src/Makefile.in
+++ b/mailnews/mapi/mapihook/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= $(MODULE)
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT	= 1
 MODULE_NAME	= msgMapiModule
 else
 EXPORT_LIBRARY  = 1
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY  = 1
 endif
--- a/mailnews/mapi/mapihook/src/moz.build
+++ b/mailnews/mapi/mapihook/src/moz.build
@@ -9,8 +9,10 @@ CPP_SOURCES += [
     'Registry.cpp',
     'msgMapiFactory.cpp',
     'msgMapiHook.cpp',
     'msgMapiImp.cpp',
     'msgMapiMain.cpp',
     'msgMapiSupport.cpp',
 ]
 
+LIBRARY_NAME = '$(MODULE)'
+
--- a/mailnews/mime/cthandlers/glue/Makefile.in
+++ b/mailnews/mime/cthandlers/glue/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= mimecthglue_s
 EXPORT_LIBRARY = 1
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
--- a/mailnews/mime/cthandlers/glue/moz.build
+++ b/mailnews/mime/cthandlers/glue/moz.build
@@ -9,8 +9,10 @@ EXPORTS += [
     'nsMimeContentTypeHandler.h',
 ]
 
 CPP_SOURCES += [
     'mimexpcom.cpp',
     'nsMimeContentTypeHandler.cpp',
 ]
 
+LIBRARY_NAME = 'mimecthglue_s'
+
--- a/mailnews/mime/cthandlers/pgpmime/Makefile.in
+++ b/mailnews/mime/cthandlers/pgpmime/Makefile.in
@@ -4,17 +4,16 @@
 
 DEPTH     = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME   = pgpmime_s
 EXPORT_LIBRARY = 1
 ifdef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 IS_COMPONENT   = 1
 MODULE_NAME    = nsPgpMimeModule
 else
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
--- a/mailnews/mime/cthandlers/pgpmime/moz.build
+++ b/mailnews/mime/cthandlers/pgpmime/moz.build
@@ -8,8 +8,10 @@ MODULE = 'pgpmime'
 EXPORTS += [
     'nsPgpMimeProxy.h',
 ]
 
 CPP_SOURCES += [
     'nsPgpMimeProxy.cpp',
 ]
 
+LIBRARY_NAME = 'pgpmime_s'
+
--- a/mailnews/mime/cthandlers/vcard/Makefile.in
+++ b/mailnews/mime/cthandlers/vcard/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = vcard_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 LOCAL_INCLUDES = -I$(srcdir)/../glue
 
 FORCE_STATIC_LIB = 1
--- a/mailnews/mime/cthandlers/vcard/moz.build
+++ b/mailnews/mime/cthandlers/vcard/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'vcard'
 
 CPP_SOURCES += [
     'mimevcrd.cpp',
 ]
 
+LIBRARY_NAME = 'vcard_s'
+
--- a/mailnews/mime/emitters/Makefile.in
+++ b/mailnews/mime/emitters/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= emitterutil_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 FORCE_STATIC_LIB = 1
 
--- a/mailnews/mime/emitters/moz.build
+++ b/mailnews/mime/emitters/moz.build
@@ -14,8 +14,10 @@ CPP_SOURCES += [
     'nsMimeBaseEmitter.cpp',
     'nsMimeHtmlEmitter.cpp',
     'nsMimePlainEmitter.cpp',
     'nsMimeRawEmitter.cpp',
     'nsMimeRebuffer.cpp',
     'nsMimeXmlEmitter.cpp',
 ]
 
+LIBRARY_NAME = 'emitterutil_s'
+
--- a/mailnews/mime/src/Makefile.in
+++ b/mailnews/mime/src/Makefile.in
@@ -7,17 +7,16 @@ DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 DEFINES		+= -DENABLE_SMIME
 
-LIBRARY_NAME	= mime_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/mailnews/mime/src/moz.build
+++ b/mailnews/mime/src/moz.build
@@ -71,8 +71,10 @@ CPP_SOURCES += [
     'nsStreamConverter.cpp',
 ]
 
 EXTRA_COMPONENTS += [
     'mimeJSComponents.js',
     'msgMime.manifest',
 ]
 
+LIBRARY_NAME = 'mime_s'
+
--- a/mailnews/news/src/Makefile.in
+++ b/mailnews/news/src/Makefile.in
@@ -5,17 +5,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= msgnews_s
 ifndef MOZ_INCOMPLETE_EXTERNAL_LINKAGE
 MOZILLA_INTERNAL_API = 1
 LIBXUL_LIBRARY = 1
 endif
 
 
 ifeq ($(OS_ARCH),WINNT)
 OS_CXXFLAGS += -DNOMINMAX
--- a/mailnews/news/src/moz.build
+++ b/mailnews/news/src/moz.build
@@ -15,8 +15,10 @@ CPP_SOURCES += [
     'nsNewsFolder.cpp',
     'nsNewsUtils.cpp',
     'nsNntpIncomingServer.cpp',
     'nsNntpMockChannel.cpp',
     'nsNntpService.cpp',
     'nsNntpUrl.cpp',
 ]
 
+LIBRARY_NAME = 'msgnews_s'
+
--- a/suite/build/Makefile.in
+++ b/suite/build/Makefile.in
@@ -4,17 +4,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	 = suite
 FORCE_SHARED_LIB = 1
 IS_COMPONENT	 = 1
 MODULE_NAME	 = nsSuiteModule
 
 USE_STATIC_LIBS	 = 1
 
 ifeq ($(OS_ARCH),WINNT)
 OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
--- a/suite/build/moz.build
+++ b/suite/build/moz.build
@@ -4,8 +4,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 MODULE = 'suite'
 
 CPP_SOURCES += [
     'nsSuiteModule.cpp',
 ]
 
+LIBRARY_NAME = 'suite'
+
--- a/suite/feeds/src/Makefile.in
+++ b/suite/feeds/src/Makefile.in
@@ -4,14 +4,13 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME = suitefeeds_s
 FORCE_STATIC_LIB = 1
 
 USE_STATIC_LIBS = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/suite/feeds/src/moz.build
+++ b/suite/feeds/src/moz.build
@@ -11,8 +11,10 @@ CPP_SOURCES += [
 
 EXTRA_COMPONENTS += [
     'FeedConverter.js',
     'FeedWriter.js',
     'SuiteFeeds.manifest',
     'WebContentConverter.js',
 ]
 
+LIBRARY_NAME = 'suitefeeds_s'
+
--- a/suite/profile/Makefile.in
+++ b/suite/profile/Makefile.in
@@ -4,18 +4,16 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= suiteprofile_s
-
 EXTRA_DSO_LDOPTS = $(MOZ_COMPONENT_LIBS)
 
 # we don't want the shared lib, but we want to force the creation of a static lib.
 FORCE_STATIC_LIB = 1
 
 USE_STATIC_LIBS = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/suite/profile/migration/src/Makefile.in
+++ b/suite/profile/migration/src/Makefile.in
@@ -4,15 +4,13 @@
 
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-LIBRARY_NAME	= suitemigration_s
-
 FORCE_STATIC_LIB = 1
 
 USE_STATIC_LIBS = 1
 
 include $(topsrcdir)/config/rules.mk
--- a/suite/profile/migration/src/moz.build
+++ b/suite/profile/migration/src/moz.build
@@ -7,8 +7,10 @@ MODULE = 'suitemigration'
 
 CPP_SOURCES += [
     'nsNetscapeProfileMigratorBase.cpp',
     'nsProfileMigrator.cpp',
     'nsSuiteProfileMigratorUtils.cpp',
     'nsThunderbirdProfileMigrator.cpp',
 ]
 
+LIBRARY_NAME = 'suitemigration_s'
+
--- a/suite/profile/moz.build
+++ b/suite/profile/moz.build
@@ -9,8 +9,10 @@ PARALLEL_DIRS += [
 ]
 
 MODULE = 'suiteprofile'
 
 CPP_SOURCES += [
     'nsSuiteDirectoryProvider.cpp',
 ]
 
+LIBRARY_NAME = 'suiteprofile_s'
+
--- a/suite/shell/src/Makefile.in
+++ b/suite/shell/src/Makefile.in
@@ -12,13 +12,11 @@ include $(DEPTH)/config/autoconf.mk
 FORCE_STATIC_LIB = 1
 
 USE_STATIC_LIBS = 1
 
 ifeq ($(OS_ARCH),WINNT)
 OS_LIBS         += $(call EXPAND_LIBNAME,ole32 version uuid shell32)
 endif
 
-LIBRARY_NAME = shellservice_s
-
 include $(topsrcdir)/config/rules.mk
 
 CXXFLAGS += $(TK_CFLAGS)
--- a/suite/shell/src/moz.build
+++ b/suite/shell/src/moz.build
@@ -13,8 +13,10 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gt
     CPP_SOURCES += ['nsGNOMEShellService.cpp']
 
 if CPP_SOURCES:
     EXTRA_COMPONENTS += [
         'nsSetDefault.js',
         'nsSetDefault.manifest',
     ]
 
+LIBRARY_NAME = 'shellservice_s'
+