diff --git a/toolkit/crashreporter/test/Makefile.in b/toolkit/crashreporter/test/Makefile.in index d4d43d02945..f9da50a3229 100644 --- a/toolkit/crashreporter/test/Makefile.in +++ b/toolkit/crashreporter/test/Makefile.in @@ -56,9 +56,25 @@ CPPSRCS = \ nsTestCrasher.cpp \ $(NULL) -EXTRA_DSO_LIBS += xpcom -EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(MOZ_COMPONENT_LIBS) $(XPCOM_GLUE_LDOPTS) LOCAL_INCLUDES += -I$(XPIDL_GEN_DIR) +EXTRA_DSO_LIBS += xpcom +EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(MOZ_COMPONENT_LIBS) + +ifdef MOZ_ENABLE_LIBXUL +EXTRA_DSO_LDOPTS += $(XPCOM_GLUE_LDOPTS) +else + +MOZILLA_INTERNAL_API = 1 + +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) +EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL +else +EXTRA_DSO_LIBS += xul +endif + +EXTRA_DSO_LDOPTS += $(EXTRA_DSO_LIBS) $(XPCOM_LIBS) + +endif include $(topsrcdir)/config/rules.mk