Index: Tools/gdomap.c
===================================================================
--- Tools/gdomap.c	(revision 26932)
+++ Tools/gdomap.c	(working copy)
@@ -4266,6 +4266,12 @@
 /**
  * (A dummy comment to help autogsdoc realize this is a command-line tool.)
  */
+#if GS_FAKE_MAIN
+/* Since we don't link gnustep-base, the main function below has to be
+ * the real main function */
+#undef main
+#endif
+
 int
 main(int argc, char** argv)
 {
