[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-3.79 build problems

From: Stephen Friedl
Subject: make-3.79 build problems
Date: Thu, 30 Aug 2001 15:22:51 -0700


Under Win32, I can't get GNU make 3.79 to build without slight changes
to main.c.  This is on NT and Win 2000, with MSVC:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86

I'm generating this patch file under UNIX but am not sure if it's the
right thing to use for an NT build. I'll also describe what I did.

1) It seems that w32/subproc/subproc.c requires "debug_flag", but
   this var is static in main.c. I removed the "static" keyword.

2) None of the "textdomain" stuff seemed to be available by default on
   this platform, so I had to #ifdef it out. I always use the _WIN32
   macro for this -- it's automatically supplied by the compiler -- but
   you might want to use something else.

Best regards,

Stephen J Friedl | Software Consultant | Tustin, CA |   +1 714 544-6561
www.unixwiz.net  | I speak for me only |   KA8CMY   | address@hidden

--- main.c.orig Thu Aug 30 15:17:44 2001
+++ main.c      Thu Aug 30 15:17:38 2001
@@ -141,7 +141,7 @@
 /* Print debugging info (--debug).  */
 static struct stringlist *db_flags;
-static int debug_flag = 0;
+int debug_flag = 0;
 int db_level = 0;
@@ -814,10 +814,12 @@
+#ifndef _WIN32
   /* Set up gettext/internationalization support.  */
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 #if !defined (HAVE_STRSIGNAL) && !defined (HAVE_SYS_SIGLIST)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]