--- save/xpcom_build_Makefile.in	2007-08-22 16:11:33.000000000 -0400
+++ xpcom/build/Makefile.in		2007-08-22 16:11:56.000000000 -0400
@@ -139,6 +139,12 @@
 EXTRA_DEPS += $(DIST)/lib/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
 endif
 
+# nsMacUtilsImpl needs CoreFoundation on Darwin, probably wrong, but 
+# that's the way it is.
+ifeq ($(OS_TARGET),Darwin)
+OS_LIBS		+= -framework CoreServices -framework CoreFoundation
+endif
+
 # Force use of PIC
 FORCE_USE_PIC	= 1 
 
