Enforce MODULE_NAME requirement for static builds.

This commit is contained in:
seawood%netscape.com 2003-03-15 22:56:35 +00:00
parent 53da1fccd2
commit 6e54a93688

View File

@ -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
#