Bug 397227 - Try to fix bustage on Linux leak test tinderbox, r=redness
authorJeff Walden <jwalden@mit.edu>
Wed, 03 Dec 2008 23:56:34 -0800
changeset 22274 f4d05bda478a8225862813e08aa7ddf11248ccb2
parent 22273 13614ada59aca20ca2a7ff6ccf9326ff2926049c
child 22275 01729bf2cbd446829c910093d8c369b634f5d1ed
push idunknown
push userunknown
push dateunknown
reviewersredness
bugs397227
milestone1.9.2a1pre
Bug 397227 - Try to fix bustage on Linux leak test tinderbox, r=redness
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -192,17 +192,21 @@ endif # XPCSHELL_TESTS
 ifdef CPP_UNIT_TESTS
 
 # Compile the tests to $(DIST)/bin.  Make lots of niceties available by default
 # through TestHarness.h, by modifying the list of includes and the libs against
 # which stuff links.
 CPPSRCS += $(CPP_UNIT_TESTS)
 SIMPLE_PROGRAMS += $(CPP_UNIT_TESTS:.cpp=$(BIN_SUFFIX))
 REQUIRES += testing xpcom
+ifndef  MOZ_ENABLE_LIBXUL
 LIBS += $(XPCOM_LIBS) $(XPCOM_GLUE_LDOPTS) $(NSPR_LIBS)
+else
+LIBS += $(XPCOM_LIBS) $(XPCOM_STANDALONE_GLUE_LDOPTS) $(NSPR_LIBS)
+endif
 
 # ...and run them the usual way
 check::
 	@$(EXIT_ON_ERROR) \
 	  for f in $(subst .cpp,,$(CPP_UNIT_TESTS)); do \
 	    XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) $(DIST)/bin/$$f; \
 	  done