diff --git a/config/config.mk b/config/config.mk index b4ab96c75bfb..d70dfc7aed5d 100644 --- a/config/config.mk +++ b/config/config.mk @@ -425,9 +425,11 @@ MOZ_META_COMPONENTS_crypto_comps = pipboot pippki pipnss # Build using PIC by default # Do not use PIC if not building a shared lib (see exceptions below) # +ifdef LIBRARY_NAME ifneq (,$(BUILD_SHARED_LIBS)$(FORCE_SHARED_LIB)$(FORCE_USE_PIC)) _ENABLE_PIC=1 endif +endif # If module is going to be merged into the nsStaticModule, # make sure that the entry points are translated and