Enforce MODULE_NAME requirement for static builds.
git-svn-id: svn://10.0.0.236/trunk@139539 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -408,6 +408,20 @@ ifdef IS_COMPONENT
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS)
|
||||
endif # IS_COMPONENT
|
||||
|
||||
#
|
||||
# Enforce the requirement that MODULE_NAME must be set
|
||||
# for components in static builds
|
||||
#
|
||||
ifdef IS_COMPONENT
|
||||
ifdef EXPORT_LIBRARY
|
||||
ifndef FORCE_SHARED_LIB
|
||||
ifndef MODULE_NAME
|
||||
$(error MODULE_NAME is required for components which may be used in static builds)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# MacOS X specific stuff
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user