--- monotone-0.23/Makefile.am.orig	2005-10-02 23:32:09.876678400 -0700
+++ monotone-0.23/Makefile.am	2005-10-02 23:32:13.940934147 -0700
@@ -427,7 +427,7 @@
 CLEANFILES = $(BUILT_SOURCES_CLEAN) $(EPS_FIGURES)
 
 txt2c: txt2c.cc Makefile
-	$(CXX) $(CXXFLAGS) -o $@ $<
+	$(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $<
 	chmod 0755 $@$(EXEEXT)
 
 apidocs: